/[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.2 by adcroft, Wed Nov 21 17:55:23 2001 UTC revision 1.3 by jmc, Sat Feb 17 23:49:43 2007 UTC
# Line 4  function [vals] = grepread(file,varargin Line 4  function [vals] = grepread(file,varargin
4  % Extracts the expressions "expr1","expr2",... from the file "file".  % Extracts the expressions "expr1","expr2",... from the file "file".
5  % This assumes output in the standard form defined by the MITgcm  % This assumes output in the standard form defined by the MITgcm
6  % monitor package and is not a replacement for TEXTREAD.  % monitor package and is not a replacement for TEXTREAD.
7  %  %
8  % e.g.  % e.g.
9  % >> vals=grepread('output.txt','time_secondsf','ke_mean','ke_max');  % >> vals=grepread('output.txt','time_secondsf','ke_mean','ke_max');
10  % >> plot(vals(:,1)/86400,vals(:,2:3));  % >> plot(vals(:,1)/86400,vals(:,2:3));
11    
12    % $Header$
13    % $Name$
14    
15  if nargin<2  if nargin<2
16   error('You must supply a filename and at least one search expression!')   error('You must supply a filename and at least one search expression!')
17  end  end

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

  ViewVC Help
Powered by ViewVC 1.1.22