CELLPRUNE is the jCell module of jLab.

 CELLPRUNE  Removes all empty cells, or cells less than a specified length.
 
    Y=CELLPRUNE(X), where X is a cell array, returns Y which is the same 
    as X but excluding any empty cells.  
 
    An example of an input cell array X and the output Y is as follows:
 
        X{1} = [1 2 3 4 nan]';    X{2}=[]';    X{3}=[1 2];
        Y{1} = [1 2 3 4]';                     Y{2}=[1 2];
 
    Y=CELLPRUNE(X,M) will remove all cells with a length of less than M 
    points. In the above example, Y=CELLPRUNE(X,3) gives Y{1}=[1 2 3 4]'.
 
    [Y1,Y2,...YN]=CELLPRUNE(X1,X2,...XN) or CELLPRUNE(X1,X2,...XN,M) with
    multiple input arguments, all of the same size, also works.  
 
    CELLPRUNE(X1,X2,...XN); or CELLPRUNE(X1,X2,...XN,M);  with no output 
    arguments overwrites the original input variables.  
 
    By default, CELLPRUNE prints a message if it excludes any cells.  
    This behavior is suppressed with the call CELLPRUNE(...,'quiet').
 
    'cellprune --t' runs a test.
 
    Usage: y=cellprune(x);
           [y1,y2,y3]=cellprune(x1,x2,x3);
           [y1,y2,y3]=cellprune(x1,x2,x3,M);
           cellprune(x1,x2,x3,M);
    __________________________________________________________________
    This is part of JLAB --- type 'help jlab' for more information
    (C) 2015--2018 J.M. Lilly --- type 'help jlab_license' for details

contents | allhelp | index