How can I mark a location on the X-Y plane while using surf?

3 ビュー (過去 30 日間)
Chris Loomis
Chris Loomis 2015 年 6 月 2 日
コメント済み: Star Strider 2015 年 6 月 2 日
I am using surf to plot heat diffusion. I would also like to mark the location of the point source in the X-Y plane. I have tried using the 'plot' function with 'hold on' to mark the location with an 'x', then surf the heat, but my x's don't show up in the graph when I'm done. Is there a nice way to do both? Thanks!

採用された回答

Star Strider
Star Strider 2015 年 6 月 2 日
To plot a specific point on a surf plot, you have to use hold, then use another 3D plotting routine to mark the plot the way you want to. Possibilities are: scatter3, stem3 (both my choices for the options they offer), as well as plot3.
The 2D plot function will put the z-value at zero.
  2 件のコメント
Chris Loomis
Chris Loomis 2015 年 6 月 2 日
Scatter3 worked perfectly, thanks!
Star Strider
Star Strider 2015 年 6 月 2 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by