Name
vec2ts — vector to timeseries
CALLING SEQUENCE
[tsout]=vec2ts(vector,boun)
PARAMETERS
- Input
vector = a (1xn) or (nx1) vector
boun = a (1xn) or (nx1) string vector of bounds
- Output
tsout = the corresponding timeseries
DESCRIPTION
Transforms into a timeseries a vector according to given bounds.
EXAMPLE
t=vec2ts([1:24 28:32],['1a' ; '24a' ; '28a' ; '32a'])
// Creates a ts which is a time trend from 1a to 32a, with three nan values between 25a and 27a.