Which function do I need to use to plot 3D
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to plot this 3D, and I cant come up with the necessary function.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276762/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276762/image.png)
0 件のコメント
回答 (2 件)
Sriram Tadavarty
2020 年 3 月 12 日
Hi Alex,
Based on the image, the surf function can provide the desired output. The usage details of surf command can be found here https://www.mathworks.com/help/matlab/ref/surf.html
There are other 3d plot functions in MATLAB which can be used. The documentation links of those are
Hope this helps.
Regards,
Sriram
1 件のコメント
Steven Lord
2020 年 3 月 12 日
As a bit of a generalization of what Sriram said, if you know what you want the plot to look like but aren't sure if there's a function in MATLAB to create it, open the Plots tab on the Toolstrip. Expand the Plots section by pressing the downward facing triangle and look for a thumbnail that looks close to what you want. Underneath each thumbnail will be the name of the related function.
If you have the variable(s) you want to plot selected in the Workspace window, you can limit what gets shown to what is applicable to those variables or even just click on the thumbnail and have MATLAB plot the selected data using that function.
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!