CELLIMIT Limits the ranges of times in a cell array of numerical arrays. NUMO=CELLIMIT(NUM,A,B), where NUM is a cell array of times, and A and B are minimum and maximum times, returns NUMO in which each element is limited to times not less than A and not greater than B. As an example, with NUM given by NUM{1} = [1 2 3 4 5 6]'; NUM{2}=[3 4 5 6 7]'; NUM{3}=[5 6]'; calling NUMO=CELLIMIT(NUMI,4,6) will return NUMO{1} = [4 5 6]'; NUMO{2}=[4 5 6]'; NUMO{3}=[5 6]'; such that that ranges of each element of NUMO are now between A and B. A and B may also be arrays with the same number of elements as NUM. In this case, the Nth entries A(N) and B(N) will set the range for NUM{N}. [NUMO,Y1,Y2,...,YN]=CELLIMIT(NUM,X1,X2,...,XN,A,B), with multiple input arguments, all cell arrays of numerical arrays having identical sizes to NUM, will limit these to the same points as NUM. Thus Y1,Y2,...,YN will be all of identical sizes to NUMO. CELLIMIT(X1,X2,...XN); with no output arguments overwrites the original input variables. Usage: num=cellimit(num,a,b); [num,y1,y2,y3]=cellimit(num,x1,x2,x3,a,b); cellimit(num,x1,x2,x3,a,b); __________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2015 J.M. Lilly --- type 'help jlab_license' for details