'Too less data' error

Bugs found in software.
Post Reply
rp111
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

'Too less data' error

Post by rp111 »

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
User avatar
Norbert
Expert
Posts: 194
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

Post by Norbert »

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

Code: Select all

crp2(x')
Best regards
Norbert
rp111
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

Post by rp111 »

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.
User avatar
Norbert
Expert
Posts: 194
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

Post by Norbert »

Hm, strange, then it should work. I will check it in the next days.
Post Reply