/[MITgcm]/MITgcm/utils/matlab/grepread.m
ViewVC logotype

Diff of /MITgcm/utils/matlab/grepread.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by adcroft, Thu Aug 30 15:53:20 2001 UTC revision 1.2 by adcroft, Wed Nov 21 17:55:23 2001 UTC
# Line 16  end Line 16  end
16  tfile=sprintf('/tmp/grepexpr%15.15f',rand);  tfile=sprintf('/tmp/grepexpr%15.15f',rand);
17  for k=1:nargin-1;  for k=1:nargin-1;
18   try   try
19    eval(['!grep ' varargin{k} ' ' file ' | sed s/.\*=// >! ' tfile])    eval(['!grep ' varargin{k} ' ' file ' | sed s/.\*=// | sed s/NAN/1.23456789/ >! ' tfile])
20    vals(:,k)=textread(tfile,'%f');    vals(:,k)=textread(tfile,'%f');
21    delete(tfile)    delete(tfile)
22   catch   catch

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22