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
m=[1 %nan %nan %nan 3 4 3 %nan 6];[listx,listy]=dealyna(m)
//Example gives:
//listy =
// listy(1)
// 1.
// listy(2)
//! 3. 4. 3. !
// 6.
// listx =
// listx(1)
// 1.
// listx(2)
//! 5. 6. 7. !
// listx(3)
// 9.