Ignore:
Timestamp:
May 23, 2013, 12:33:52 AM (8 years ago)
Author:
sommeria
Message:

small bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_file_series.m

    r639 r643  
    7070        if isempty(incr_i)
    7171            if isempty(first_j) || isempty(incr_j) % no j index or no defined increment for j
    72                 [ref_j,ref_i]=find(i1_series{iview});
     72                ref_j=find(max(i1_series{iview},[],2));
     73                ref_i=find(max(i1_series{iview},[],1));
    7374                ref_i=ref_i-1;
    7475                ref_j=ref_j-1;
     
    7778            else
    7879                ref_j=first_j:incr_j:last_j;
    79                 [tild,ref_i]=find(i1_series{iview}(:,ref_j));
     80                ref_i=find(max(i1_series{iview}(:,ref_j),[],1));
    8081                ref_i=ref_i-1;
    8182                ref_i=ref_i(ref_i>=first_i & ref_i<=last_i);
     
    8485            ref_i=first_i:incr_i:last_i;%default
    8586            if isempty(first_j) ||isempty(incr_j)% no j index or no defined increment for j
    86                 [ref_j,tild]=find(i1_series{iview});
     87                ref_j=find(max(i1_series{iview},[],2));
    8788                ref_j=ref_j-1;
    8889                ref_j=ref_j(ref_j>=first_j & ref_j<=last_j);
Note: See TracChangeset for help on using the changeset viewer.