Changeset 158 for trunk/src/transform_field
- Timestamp:
- Dec 22, 2010, 5:12:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys.m
r157 r158 99 99 100 100 DataOut=Data;%default 101 DataOut.Coord Type='phys'; %put flag for physical coordinates101 DataOut.CoordUnit=Calib.CoordUnit; %put flag for physical coordinates 102 102 if isfield(Calib,'SliceCoord') 103 103 DataOut.PlaneCoord=Calib.SliceCoord;%to generalise for any plane 104 104 end 105 105 % The transform ACTS ONLY IF .CoordType='px'and Calib defined 106 if isfield(Data,'Coord Type')&& isequal(Data.CoordType,'px')&& ~isempty(Calib)106 if isfield(Data,'CoordUnit')%&& isequal(Data.CoordType,'px')&& ~isempty(Calib) 107 107 if isfield(Calib,'CoordUnit') 108 108 DataOut.CoordUnit=Calib.CoordUnit;
Note: See TracChangeset
for help on using the changeset viewer.