Hi Gerhard, Try:
plot2d(x, [y ; z]); Here is my guess: in the example "plot2d(x,[sin(x) sin(2*x) sin(3*x)])", x and all the other vectors are Nx1 so "[sin(x) sin(2*x) sin(3*x)]" is Nx3 which is fine for plotting with respect to a Nx1 x vector. In your example, I think x, y and z are 1xN (not Nx1) so "[y z]" is 1x2N and not 2xN so plot2d is complaining about sizes of your arguments. Cheers, Antoine Le Dimanche, Août 21, 2016 08:27 CEST, "Gerhard Kreuzer" <gerhard.kreu...@liftoff.at> a écrit: > Hi, > > > > here my two attepts one working, one failed, but why? > > > > plot2d(x, [y z]); > > //plot2d(x, y); // working > > //plot2d(x, z); // working > > > > > > 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(x) sin(2*x) sin(3*x)]) > > > > which is pretty much the same what I want to do, isn't it? > > > > Thanks for helping. > > > > With best regards > > > > Gerhard > > > > > > > _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users