Changeset 211


Ignore:
Timestamp:
Feb 28, 2011, 11:30:26 PM (13 years ago)
Author:
sommeria
Message:

bug repair for phys

File:
1 edited

Legend:

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

    r209 r211  
    282282test_refraction=0;
    283283if exist('Zindex','var')&& isequal(Zindex,round(Zindex))&& Zindex>0 && isfield(Calib,'SliceCoord')&&length(Calib.SliceCoord)>=Zindex
    284     if isfield(Calib, 'SliceAngle') && ~isequal(Calib.SliceAngle,0)
     284    if isfield(Calib, 'SliceAngle') && ~isequal(Calib.SliceAngle,[0 0 0])
    285285        testangle=1;
    286286        om=norm(Calib.SliceAngle(Zindex,:));%norm of rotation angle in radians
Note: See TracChangeset for help on using the changeset viewer.