Changeset 116 for trunk/src/imadoc2struct.m
- Timestamp:
- Oct 16, 2010, 5:56:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imadoc2struct.m
r114 r116 217 217 if strcmp(option,'GeometryCalib') 218 218 tsai.PointCoord=get_value(subt,'/GeometryCalib/SourceCalib/PointCoord',[0 0 0 0 0]);%time in TimeUnit 219 size(tsai.PointCoord) 219 220 end 220 221 s.GeometryCalib=tsai; … … 228 229 val=default; 229 230 uid=find(t,label);%find the element iud(s) 230 if ~isempty(uid) 231 uid_child=children(t,uid); 231 if ~isempty(uid) %if the element named label exists 232 uid_child=children(t,uid);%find the children 232 233 if ~isempty(uid_child) 233 data=get(t,uid_child,'type'); 234 if iscell(data) 234 data=get(t,uid_child,'type');%get the type of child 235 if iscell(data)% case of multiple element 235 236 for icell=1:numel(data) 236 237 val_read=str2num(get(t,uid_child(icell),'value')); … … 239 240 end 240 241 end 241 val=val';242 else 242 % val=val'; 243 else % case of unique element value 243 244 val_read=str2num(get(t,uid_child,'value')); 244 245 if ~isempty(val_read)
Note: See TracChangeset
for help on using the changeset viewer.