Parent Directory
|
Revision Log
|
Revision Graph
- 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 | gforget | 1.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 |