Changeset 1085


Ignore:
Timestamp:
06/24/09 14:51:23 (16 years ago)
Author:
Mathieu Morlighem
Message:

better like that

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Exp/expcoarsen.m

    r1084 r1085  
    1818A=expread(oldfile,1);
    1919numprofiles=size(A,2);
     20A(1).x(end)
    2021
    2122%Go through the profiles
     
    2627        j=1;
    2728
    28         while 1,
    29 
    30                 %stop if we have reached end of profile (always keep the last point)
    31                 if j>numpoints-1,
    32                         break
    33                 end
     29        %stop if we have reached end of profile (always keep the last point)
     30        while j<numpoints-1,,
    3431
    3532                %See whether we keep this point or not
     
    4340                end
    4441        end
     42
    4543end
     44A(1).x(end)
    4645
    4746expwrite(A,newfile);
Note: See TracChangeset for help on using the changeset viewer.