COL2CELL Converts 'column-appended' data into cell arrays of numeric arrays. X=COL2CELL(COL) converts the array COL, a 2D array having blocks of data separated by rows of all NaNs, into a cell array, with each cell containing one of the data blocks, excluding the trailing NaNs. Since NANs mark the end of each block, missing or bad data in COL should instead be indicated by INFs. [X1,X2,...,XN]=COL2CELL(C1,C2,...,CN) also works, where the input fields C1,...,CN are all the same size. In this case the locations of NANs in C1 are used to break all the other CN into cells. COL2CELL(C1,C2,...,CN); with no output arguments overwrites the original variables. COL2CELL is inverted by CELL2COL. __________________________________________________________________ See also CELL2COL, COL2MAT, MAT2COL, COLBREAKS. 'col2cell --t' runs a test. Usage: x=col2cell(col); [x1,x2,...,xN]=col2cell(c1,c2,...,cN); __________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2008--2018 J.M. Lilly --- type 'help jlab_license' for details