3D surface map

70 ビュー (過去 30 日間)
John Auldrey Laurente
John Auldrey Laurente 2020 年 2 月 8 日
回答済み: Walter Roberson 2020 年 2 月 8 日
how to create a 3D surface map for the function g = ye^(x3 + y3)
thank you!

回答 (2 件)

Shunichi Kusano
Shunichi Kusano 2020 年 2 月 8 日

Walter Roberson
Walter Roberson 2020 年 2 月 8 日
First write the expression in MATLAB syntax. MATLAB syntax does not have any implicit multiplication, and invocation of functions is always of the form FunctionName(parameter) . Exponentiation is the ^ operator .Also, e raised to a power is written using the function name exp
Once you have the expression in MATLAB syntax, create an anonymous function with two parameters, and pass that to fsurf().
Anonymous functions with two parameters look like @(x,y) FORMULA
For example,
fsurf(@(x,y) 7+x^2+y)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by