- Timestamp:
- Dec 3, 2010, 2:30:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys.m
r116 r151 100 100 DataOut=Data;%default 101 101 DataOut.CoordType='phys'; %put flag for physical coordinates 102 if isfield(Calib,'SliceCoord') 103 DataOut.PlaneCoord=Calib.SliceCoord;%to generalise for any plane 104 end 102 105 % The transform ACTS ONLY IF .CoordType='px'and Calib defined 103 106 if isfield(Data,'CoordType')&& isequal(Data.CoordType,'px')&& ~isempty(Calib) … … 106 109 else 107 110 DataOut.CoordUnit='cm'; %default 108 % elseif isfield(DataOut,'CoordUnit')109 % DataOut=rmfield(DataOut,'CoordUnit');110 111 end 111 112 DataOut.TimeUnit='s';
Note: See TracChangeset
for help on using the changeset viewer.