Unrecognized function or variable 'X'.

2 ビュー (過去 30 日間)
Yuemeng Wang
Yuemeng Wang 2021 年 5 月 5 日
コメント済み: KSSV 2021 年 5 月 5 日
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 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by