![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1037885/image.png)
How do I plot a 3d shape from a function?
3 ビュー (過去 30 日間)
古いコメントを表示
I have to plot the following function:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1037840/image.png)
where [c1,c2,c3,c4] = [2.13,2.22,2.62,0.177]
Is there a way of doing this?
Thank you
0 件のコメント
採用された回答
Hiro Yoshino
2022 年 6 月 19 日
x = -2:0.25:2;
y = x;
if you want to visualize this
, then
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1037885/image.png)
surf(x,y,x.*exp(-x.^2 -(y').^2))
You can also perform the same thing by using meshgrid function - this might be easier for you to understand this..
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!