plot2d error 999

Mike Page Mike at Page-One.Waitrose.com
Tue Dec 13 15:45:08 CET 2011


Hi,

If I enter the commands:

x=[1:1000];
y=zeros(x);
y(1)=1;
plot2d(x,y,logflag='ll');

it works correctly,

But if instead I enter:

x=[1:1000];
y=zeros(x);
y(2)=1;
plot2d(x,y,logflag='ll');

I get the error:
                         !--error 999
plot2d: At least one y data must be strictly positive to compute the bounds
and use logarithmic mode

It looks like the first value has to be non-zero rather than simply any
value being non-zero.
Is this a bug, or am I misunderstanding the error message?


Mike.




More information about the users mailing list