Name

dealyna — splits y series containing NAs

CALLING SEQUENCE

[listx,listy]=dealyna(y)

PARAMETERS

Input

• y = a row or column vector

Output

• listx = list of coordinates corresponding to non NA vectors

• listy = list of vector of values homogenous with respect to NA's

DESCRIPTION

Split a vector y into a series of vectors, each containing only non NA successive values; save them into a list and save into another list the vectors of corresponding observations.

EXAMPLE

1) m=[1 %nan %nan %nan 3 4 3 %nan 6];[listx,listy]=dealyna(m)
2) [listx,listy]=dealyna(yext)
 
Example 1 gives: 
listy  =
       listy(1)
    1.
       listy(2)
!   3.    4.    3. !
       listy(3)
    6.
 listx  =
       listx(1)
    1.
       listx(2)
!   5.    6.    7. !
       listx(3)
    9.
Example 2 taken from function pltseries0().

               

AUTHOR

Eric Dubois 2002