CELLPACK is the jCell module of jLab.

 CELLPACK  Removes all NaN values from cell arrays of numeric arrays.
 
    Y=CELLPACK(X) where X is a cell array of numeric arrays, removes any
    NaN values occuring within the cells and returns the result in Y.  
 
    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 4]';          Y{2}=[2 3]';      Y{3}=[1 2];   Y{4}=[];
 
    CELLPACK does not remove empty cells.  This is done by CELLPRUNE.
 
    [Y1,Y2,...YN]=CELLPACK(X1,X2,...XN) with multiple input arguments, all
    of the same size, removes locations of NaNs that occur in *any* of the 
    input variables.  The output variables Y1,Y2,...YN will all be the same
    size, and none of them will contain any NaNs.
 
    CELLPACK(X1,X2,...XN); with no output arguments overwrites the 
    original input variables.   
 
    'cellpack --t' runs a test.
 
    Usage: y=cellpack(x);
           [y1,y2,y3]=cellpack(x1,x2,x3);
           cellpack(x1,x2,x3);
    __________________________________________________________________
    This is part of JLAB --- type 'help jlab' for more information
    (C) 2015--2016 J.M. Lilly --- type 'help jlab_license' for details

contents | allhelp | index