Changeset 554 for trunk/src/uvmat.m


Ignore:
Timestamp:
Oct 17, 2012, 10:36:43 PM (8 years ago)
Author:
sommeria
Message:

find_file_series modified to deal with zero indices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r552 r554  
    22952295    end
    22962296    siz=size(UvData.XmlData{1}.Time);
    2297     if ~isempty(num_i1)&& ~isempty(num_i2)&&siz(1)>=max(num_i1,num_i2) && siz(2)>=max(num_j1,num_j2)
     2297    if ~isempty(num_i1)&& ~isempty(num_i2) && num_i1>0 &&siz(1)>=max(num_i1,num_i2) && siz(2)>=max(num_j1,num_j2)
    22982298        abstime=(UvData.XmlData{1}.Time(num_i1,num_j1)+UvData.XmlData{1}.Time(num_i2,num_j2))/2;%overset the time read from files
    22992299        dt=(UvData.XmlData{1}.Time(num_i2,num_j2)-UvData.XmlData{1}.Time(num_i1,num_j1));
Note: See TracChangeset for help on using the changeset viewer.