[Scilab-users] plot2d problem

Samuel Gougeon sgougeon at free.fr
Sun Aug 21 16:09:26 CEST 2016


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160821/d67314f3/attachment.htm>


More information about the users mailing list