/[MITgcm]/MITgcm_contrib/arctic40km/matlab/myint2str.m
ViewVC logotype

Contents of /MITgcm_contrib/arctic40km/matlab/myint2str.m

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


Revision 1.1 - (show annotations) (download)
Fri Jun 30 10:11:06 2006 UTC (19 years ago) by dimitri
Branch: MAIN
CVS Tags: HEAD
Added matlab routines needed to look at output files.

1 function s=myint2str(x,n);
2 %MYIN2STR(X,N) convert integer to string with leading zeros
3 % padds integer X with zeros to N locations
4
5 if nargin < 2, n=2; end
6 if nargin < 1, help myint2str, return, end
7
8 s=int2str(x);
9 n=n-length(s);
10 for i=1:n
11 s=['0' s];
12 end

  ViewVC Help
Powered by ViewVC 1.1.22