CELLSTRIP Strips INF values from the beginnings or ends of cell arrays. Y=CELLSTRIP(X) where X is a cell array of numeric arrays, strips any INF values at the beginnings or the ends of the cells and returns the result in Y. Thus Y will begin and end with non-INF values. An example of an input cell array X and the output Y is as follows: X{1} = [1 2 inf 4 inf]'; X{2}=[inf 2 3]'; X{3}=[1 2]; X{4}=[]; Y{1} = [1 2 inf 4]'; Y{2}=[2 3]'; Y{3}=[1 2]; Y{4}=[]; CELLSTRIP does not remove empty cells. This is done by CELLPRUNE. [Y1,Y2,...YN]=CELLSTRIP(X1,X2,...XN) with multiple input arguments, all of the same size, strips locations of leading or trailing INFs that occur in *any* of the input variables. Thus the output variables will all be the same size, and none of them will begin or end with a INF. CELLSTRIP(X1,X2,...XN); with no output arguments overwrites the original input variables. 'cellstrip --t' runs a test. Usage: y=cellstrip(x); [y1,y2,y3]=cellstrip(x1,x2,x3); cellstrip(x1,x2,x3); __________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2015--2018 J.M. Lilly --- type 'help jlab_license' for details