Changeset 250 for trunk


Ignore:
Timestamp:
May 9, 2011, 12:34:06 AM (14 years ago)
Author:
sommeria
Message:

phys: bug repair to account for a constant coordinate angle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/phys.m

    r241 r250  
    116116    DataOut.PlaneCoord=Calib.SliceCoord(Data.ZIndex,:);% transfer the slice position
    117117    if isfield(Calib,'SliceAngle') % transfer the slice rotation angles
    118         DataOut.PlaneAngle=Calib.SliceAngle(Data.ZIndex,:);
     118        if isequal(size(Calib.SliceAngle,1),1)
     119             DataOut.PlaneAngle=Calib.SliceAngle;
     120        else
     121            DataOut.PlaneAngle=Calib.SliceAngle(Data.ZIndex,:);
     122        end
    119123    end
    120124end
Note: See TracChangeset for help on using the changeset viewer.