[scilab-Users] Doubt in plot3d
Christian Vincent
christian.vincent at ac-creteil.fr
Sun May 17 11:10:43 CEST 2009
Lucio Agostinho Rocha a écrit :
> Hi,
>
> I'm trying to plot the following function in Scilab:
>
> x=[-1:0.01:1];
> y=[-1:0.01:1];
> g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1;
> plot3d(x,y,g)
>
> but nothing is displayed. What i'm doing wrong? Someone could help me?
> If yes, how can I put a degrade with several colors?
>
> Thanks in advance,
>
> Lucio
> ........
>
>
> ------------------------------------------------------------------------
> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>
> - Celebridades
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>
> - Música
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>
> - Esportes
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/>
=========
You can also try
x=[-1:0.01:1];
y=[-1:0.01:1];
deff("z=g(x,y)","z = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y
+ %pi ) + 1")
fplot3d(x,y,g)
=========
ChV
More information about the users
mailing list