Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@xml/getHistoryFromUUID.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 | |
2 function h = getHistoryFromUUID(hists, inhistUUID) | |
3 | |
4 h = []; | |
5 for ii = 1:numel(hists) | |
6 if strcmp(hists(ii).UUID, inhistUUID) | |
7 h = hists(ii); | |
8 break; | |
9 end | |
10 end | |
11 | |
12 if isempty(h) | |
13 error('### Didn''t find a history object with the UUID [%s]', inhistUUID) | |
14 end | |
15 | |
16 end |