/[MITgcm]/MITgcm_contrib/gael/matlab_class/@gcmfaces/convert2vector.m
ViewVC logotype

Contents of /MITgcm_contrib/gael/matlab_class/@gcmfaces/convert2vector.m

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


Revision 1.2 - (show annotations) (download)
Wed Jun 22 02:13:40 2011 UTC (14 years ago) by gforget
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
- convert2pcol.m and convert2vector.m : as done earlier for convert2array.m,
	simplify the logic, add help section, move routines to gcmfaces_convert
- convert2pcol_cube.m etc., line_greatC_TUV_MASKS_v3, input_list_check.m : update accordingly

1 function [a]=convert2array(b,varargin);
2
3 if isa(b,'gcmfaces'); do_gcmfaces2vector=1; else; do_gcmfaces2vector=0; end;
4
5 if do_gcmfaces2vector;
6 bb=convert2array(b);
7 a=bb(:);
8 else;
9 c=varargin{1};
10 bb=convert2array(c);
11 if length(bb(:))~=length(b(:)); error('wrong size of inputs'); end;
12 b=reshape(b,size(bb));
13 a=convert2array(b,c);
14 end;
15
16
17

  ViewVC Help
Powered by ViewVC 1.1.22