Changeset 1059 for trunk/src/phys_XYZ.m


Ignore:
Timestamp:
Nov 29, 2018, 5:44:44 PM (5 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_XYZ.m

    r1027 r1059  
    3030testangle=0;
    3131test_refraction=0;
    32 if exist('Zindex','var')&& isequal(Zindex,round(Zindex))&& Zindex>0 && isfield(Calib,'SliceCoord')&&length(Calib.SliceCoord)>=Zindex
     32if exist('Zindex','var')&& isequal(Zindex,round(Zindex))&& Zindex>0 && isfield(Calib,'SliceCoord')&&size(Calib.SliceCoord,1)>=Zindex
    3333    if isfield(Calib, 'SliceAngle') && ~isequal(Calib.SliceAngle,[0 0 0]) && ~isequal(Calib.SliceAngle(Zindex,:),[0 0 0])
    3434        testangle=1;
     
    4343%         Z0=norm_plane*Calib.SliceCoord(Zindex,:)'/norm_plane(3);
    4444    end
    45         Z0=Calib.SliceCoord(Zindex,3);%horizontal plane z=cte
     45    Z0=Calib.SliceCoord(Zindex,3);%horizontal plane z=cte
    4646%     end
    4747    Z0virt=Z0;
Note: See TracChangeset for help on using the changeset viewer.