Changeset 27911


Ignore:
Timestamp:
09/20/23 09:55:34 (18 months ago)
Author:
Mathieu Morlighem
Message:

CHG: skipping line if numel is 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/shp/shp2exp.m

    r26661 r27911  
    6262                pos = find(~isnan(x) & ~isnan(y));
    6363                idx=find(diff(pos)~=1);
     64                if numel(idx)==0
     65                        disp(['Skipping Line ' num2str(i)]);
     66                        continue;
     67                end
    6468                A=[idx(1);diff(idx);numel(pos)-idx(end)];
    6569                Cx=mat2cell(x(pos),A,1);
Note: See TracChangeset for help on using the changeset viewer.