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

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

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

revision 1.1 by adcroft, Fri May 4 18:37:18 2001 UTC revision 1.2 by adcroft, Tue May 29 14:01:40 2001 UTC
# Line 0  Line 1 
1    function [] = plotcube(X,Y,Z,C)
2    % e.g.
3    % load CUBE_3DGRID
4    % tt=rdmds('TTtave.0000103680');
5    % plotcube(XG,YG,ZG,tt(:,:,1))
6    %
7    %  %
8    %  %
9    
10    n=size(C,2);
11    
12    surf(X(:,:,1),Y(:,:,1),Z(:,:,1),C(1:n,:))
13    hold on
14    for j=2:6
15     surf(X(:,:,j),Y(:,:,j),Z(:,:,j),C((j-1)*n+1:j*n,:))
16    end
17    hold off
18    xlabel('X');
19    ylabel('Y');
20    zlabel('Z');

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

  ViewVC Help
Powered by ViewVC 1.1.22