Produce an eggbox
Mostrar comentarios más antiguos
Dear all, I should produce an eggbox. I tried to use this code, following the instructions, but I did not receive what I needed. Where's the error?
x=[-10:0.2469135802469136:+10]
y=[-10:0.2469135802469136:+10]
[X,Y]= meshgrid(x,y)
M1=sin(X)
M2=sin(Y)
M12=M1*M2
surf(X,Y)
X.^2
Thanks a lot
Respuesta aceptada
Más respuestas (2)
Fangjun Jiang
el 9 de Nov. de 2011
0 votos
Do you mean your last line to be surf(X,Y, X.^2)? It plotted something but I don't know what is an eggbox.
2 comentarios
Orlando
el 9 de Nov. de 2011
Fangjun Jiang
el 10 de Nov. de 2011
You call the MATLAB logo an egg box? Mr. Little and Mr. Moler will be mad.
Image Analyst
el 10 de Nov. de 2011
Change the last two lines to
M12 = M1 .* M2
surf(M12)
1 comentario
Orlando
el 10 de Nov. de 2011
Categorías
Más información sobre Spline Postprocessing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!