fsurf(X,Y,exp(-2*x.^4+2*x.^2-x.y.^1-y.^2))
i try to plot but the system says:
>> matlabplot
Unrecognized function or variable 'X'.
Error in matlabplot (line 7)
fsurf(X,Y,exp(-2*x.^4+2*x.^2-x.y.^1-y.^2))

 채택된 답변

KSSV
KSSV 2021년 5월 5일

0 개 추천

fun = @(x,y) exp(-2*x.^4+2*x.^2-x.*y.^1-y.^2) ;
fsurf(fun)

댓글 수: 3

Yuemeng Wang
Yuemeng Wang 2021년 5월 5일
omg thank you so much!
Yuemeng Wang
Yuemeng Wang 2021년 5월 5일
do you maybe know how to make the x y a bit amaller? as in not use the default -5~5?
thank you!!!
KSSV
KSSV 2021년 5월 5일
Read about the function fsurf, there is an option to specify the intervel. Also you can generate the same using surf. Read about surf as well.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2021년 5월 5일

댓글:

2021년 5월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by