Le 21/08/2016 08:27, Gerhard Kreuzer a écrit :
Hi,
here my two attepts one working, one failed, but why?
plot2d(x,[y z]);
.
try
plot2d(x,[y' z'])
instead
First line fails. X, y, z were vectores 1 x 1500, so as the commented
lines were working I guess that there is nothing wrong with x, y, z
and their format and content, right?
I checked the samples, here I found
x=[0:0.1:2*%pi]';
plot2d(x,[sin <sin.html>(x) sin <sin.html>(2*x) sin <sin.html>(3*x)])
which is pretty much the same what I want to do, isn’t it?
"pretty much" is the keyword. Note the transposition of x (so of sin(n*x) )
--> uman plot2d d
Description
-----------
...
If x is a vector and y a matrix plot2d(x,y,<opt_args>)
plots each *columns* of y versusvector x.
https://help.scilab.org/docs/6.0.0/en_US/plot2d.html
Samuel
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users