[Scilab-users] I have problem to plot a graph of the trigonometric function.
Reinaldo
rei.listas at yahoo.com
Mon Jun 23 22:56:33 CEST 2014
Hi Scilab users,
I have a problem to plot a graph of the trigonometric function, as follows:
// Close all opened figures and clear workspace //xdel(winsid()); clear;clc;function f=myfunction(x) f = x*sin(x) endfunction // Plot scf(1);clf(1);xdata= linspace ( -10 ,10 ,100 );ydata= myfunction ( xdata);plot ( xdata,ydata);xlabel("$-5\le x\le 5$","fontsize",4,"color","red");ylabel("y = x . sin(x)","fontsize",4,"color","red");title("Function","red","fontsize",4);legend("Function evaluation");
Could someone tell me what's wrong?
Thank you in advance.
All best,
Reinaldo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140623/92302b1b/attachment.htm>
More information about the users
mailing list