<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>To finish my work, I want to put some red points in this function:<br><br> x=[-1:0.01:1];<br> y=[-1:0.01:1];<br><br> for i=1:length(x)<br> for j=1:length(y)<br> g(i,j) = x(i) .* sin((4*%pi) * x(i)) - y(j) .* sin ( (4*%pi) * y(j) + %pi ) + 1;<br> end<br> end<br><br>Then, I tried to insert a new position in each list, like this:<br><br> tx=length(x)+1;<br> ty=length(y)+1;<br> x(1,tx)=2;<br> y(1,ty)=1;<br> g(tx,ty)= x(tx) .* sin((4*%pi) * x(tx)) - y(ty) .* sin ( (4*%pi) * y(ty) + %pi ) + 1;<br><br> plot3d(x,y,g)<br><br>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?<br><br>Thanks in advance,<br><br>Lucio<br>........</td></tr></table><br>
<hr size=1>Veja quais são os assuntos do momento no Yahoo! + Buscados: <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/">Top 10</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/">Celebridades</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/">Música</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/">Esportes</a>