Changeset 1186 for trunk


Ignore:
Timestamp:
Nov 7, 2025, 12:55:50 PM (4 weeks ago)
Author:
sommeria
Message:

phys_XYZ bug corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/phys_XYZ.m

    r1184 r1186  
    4444Zphys=0; %default output
    4545
    46 if isempty(Slice)
    47     Slice=Calib;%old convention < 2022
    48 elseif ~isfield(Slice,'SliceCoord')% bad input
    49     Xphys=[];
    50     Yphys=[];% bad input
    51     return
    52 end
     46% if isempty(Slice)
     47%     Slice=Calib;%old convention < 2022
     48% elseif ~isfield(Slice,'SliceCoord')% bad input
     49%     Xphys=[];
     50%     Yphys=[];% bad input
     51%     return
     52% end
    5353if exist('Zindex','var')&& isequal(Zindex,round(Zindex))&& Zindex>0 && isfield(Slice,'SliceCoord')&&size(Slice.SliceCoord,1)>=Zindex
    5454    if isfield(Slice, 'SliceAngle') && size(Slice.SliceAngle,1)>=Zindex && ~isequal(Slice.SliceAngle(Zindex,:),[0 0 0])
Note: See TracChangeset for help on using the changeset viewer.