Hello:
I am using the CRP toolbox and using it like this:
rp=crp2(x);
where 'x' is a data matrix of several columns (more than two).
For some contents of 'x', not always, I get this error:
??? Error using ==> crp2 at 297
Too less data
Either too much NaN or the number of columns in the vectors do not match.
However, 'x' does not have any 'NaN' value and the second diagnostic (mismatching number of column) possibly only applies when two data parameters are provided (which is not the case).
I wonder if the problem may have something to do with entries with value 0. Are zero values within 'x' treated in a special way?
Any hint on what might be wrong, why and how to fix it?
Thank you very much,
Javier
'Too less data' error
- Norbert
- Expert
- Posts: 198
- Joined: Wed Jan 4, 2006 11:03
- Affiliation (Univ., Inst., Dept.): Potsdam Institute for Climate Impact Research, Germany
- Location: Potsdam, Germany
- Location: Potsdam Institute for Climate Impact Research, Germany
Re: 'Too less data' error
Hello,
what is the dimension of your time series vector x? It looks like you are using a row-vector (where the values are arranged horizontally) instead of a column vector (values arranged vertically). Please check by simply using
Best regards
Norbert
what is the dimension of your time series vector x? It looks like you are using a row-vector (where the values are arranged horizontally) instead of a column vector (values arranged vertically). Please check by simply using
Code: Select all
crp2(x')
Norbert
-
- Junior
- Posts: 2
- Joined: Tue Feb 7, 2012 11:41
- Affiliation (Univ., Inst., Dept.): Univ. Jaume I
- Location: Castellón, Spain
- Research field: computer vision
Re: 'Too less data' error
My time series vector x is actually a Matlab matrix (say, 80x10), and I get this error with both crp(x) and crp2(x').
I don't really understand what may be wrong.
I don't really understand what may be wrong.
- Norbert
- Expert
- Posts: 198
- Joined: Wed Jan 4, 2006 11:03
- Affiliation (Univ., Inst., Dept.): Potsdam Institute for Climate Impact Research, Germany
- Location: Potsdam, Germany
- Location: Potsdam Institute for Climate Impact Research, Germany
Re: 'Too less data' error
Hm, strange, then it should work. I will check it in the next days.