CELLSTRIP is the jCell module of jLab.

 CELLSTRIP  Strips NaN values from the beginnings or ends of cell arrays.
    Y=CELLSTRIP(X) where X is a cell array of numeric arrays, strips any
    NaN values at the beginnings or the ends of the cells and returns the 
    result in Y.  Thus Y will begin and end with non-NaN values.
    An example of an input cell array X and the output Y is as follows:
        X{1} = [1 2 nan 4 nan]';  X{2}=[nan 2 3]';  X{3}=[1 2];   X{4}=[];
        Y{1} = [1 2 nan 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 NaNs 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 NaN.
    CELLSTRIP(X1,X2,...XN); with no output arguments overwrites the 
    original input variables.   
    'cellstrip --t' runs a test.
    Usage: y=cellstrip(x);
    This is part of JLAB --- type 'help jlab' for more information
    (C) 2015 J.M. Lilly --- type 'help jlab_license' for details

contents | allhelp | index