[scilab-Users] A red point in plot3d

Lucio Agostinho Rocha outrosdiasvirao at yahoo.com.br
Sun May 17 20:26:44 CEST 2009


Hi,

To finish my work, I want to put some red points in this function:

   x=[-1:0.01:1];
   y=[-1:0.01:1];

   for i=1:length(x)
      for j=1:length(y)
         g(i,j) = x(i) .* sin((4*%pi) * x(i)) - y(j) .* sin ( (4*%pi) *  y(j) + %pi ) + 1;
      end
   end

Then, I tried to insert a new position in each list, like this:

   tx=length(x)+1;
   ty=length(y)+1;
   x(1,tx)=2;
   y(1,ty)=1;
   g(tx,ty)= x(tx) .* sin((4*%pi) * x(tx)) - y(ty) .* sin ( (4*%pi) *  y(ty) + %pi ) + 1;

   plot3d(x,y,g)

But this don't work. I've several values for x and y like '0.8987...' and '-0.321...'. How can I plot this points in my function? Some suggestion?

Thanks in advance,

Lucio
........


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090517/30dc33ca/attachment.htm>


More information about the users mailing list