Ignore:
Timestamp:
06/08/09 12:10:24 (16 years ago)
Author:
seroussi
Message:

better disps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/DataProcessing/addtrack.m

    r33 r840  
    22%ADDTRACK - modify a map to take values of a track
    33%
    4 %   This routine modify a map to improve it with values of tracks.
     4%   This routine modifies a map to improve it with values of tracks.
    55%   This output map has more values than the input one so that the values
    66%   of the tracks are relevant.
    7 %   x_m1 and y_m1 are two vector containing the coordinates of the matrix
     7%   x_m1 and y_m1 are two vectors containing the coordinates of the matrix
    88%   the distance between two points must be the same everywhere
    99%   values1 is a matrix of size (y_m1-1)*(x_m1-1)
     
    5252
    5353%Calculate the multiplicate factor for the new values:
    54 mult=round((x_m1(2)-x_m1(1))/(1*dist_av));
     54%mult=round((x_m1(2)-x_m1(1))/(1*dist_av));
     55mult=3;
    5556
    5657%Plug the values in the new multiplied matrix
     
    101102%Loop over the points of the track
    102103nel=size(track_values,1);
     104fprintf('\n%s','      track processing progress  0.0 %  ');
     105disp('');
    103106for i=1:nel;
    104107        if mod(i,1000)==0,
    105                 disp(sprintf('\r%s%.2f%s','      track processing progress  ',i/nel*100,' %'));
     108                fprintf('\b\b\b\b\b\b\b')
     109                fprintf('%5.2f%s',i/nel*100,' %');
    106110        end
    107111
Note: See TracChangeset for help on using the changeset viewer.