Produce an eggbox
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Fangjun Jiang
2011년 11월 9일
0 개 추천
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
Orlando
2011년 11월 9일
Fangjun Jiang
2011년 11월 10일
You call the MATLAB logo an egg box? Mr. Little and Mr. Moler will be mad.
카테고리
도움말 센터 및 File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!