CELLFILL is the jCell module of jLab.

 CELLFILL  Fills missing data marked by NaNs in a cell array.
 
    Y=CELLFILL(X) where X is a cell array of numeric arrays, interpolates 
    to fill NaN values in the of the cells, and returns the result in Y.  
 
    By default CELLFILL uses the 'pchip' method.  CELLFILL(X,STR) instead
    uses the method specified by STR.  See INTERP1 for possible methods. 
 
    An example of an input cell array X and the output Y is as follows:
 
        X{1} = [1 2 nan 4 5]';   X{2}=[2 4 6 nan nan 12]';   
        Y{1} = [1 2  3  4 5]';   Y{2}=[2 4 6  8  10  12]';   
 
    If NaNs in X are at the beginnings or the ends of cells, some NaNs may 
    still be present in Y, depending on the method used.  If all NaNs in X 
    are interior NaNs, there will be no NaNs in Y regardless of the method.
    See also CELLSTRIP for dealing with leading or trailing NaNs.
 
    [Y1,Y2,...YN]=CELLFILL(X1,X2,...XN) with multiple input arguments also
    works provided the XN are all the same size. 
 
    CELLFILL(X1,X2,...XN); with no output arguments overwrites the 
    original input variables.   
 
    'cellfill --t' runs a test.
 
    Usage: y=cellfill(x);
           [y1,y2,y3]=cellfill(x1,x2,x3);
           cellfill(x1,x2,x3);
    __________________________________________________________________
    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