フィルターのクリア

Want to plot a single point on an ezmesh plot

4 ビュー (過去 30 日間)
Timothy Kain
Timothy Kain 2015 年 11 月 13 日
回答済み: Mike Garrity 2015 年 11 月 13 日
I have an ezmesh plot and I wish to add a single point that I have found previously. Here is what I have so far:
ezmeshc('x*sqrt(x.^2+y.^2)*besselj(1, 3.8316*sqrt(x.^2+y.^2))', [-1,1,-1,1])
hold on
plot3(mins(1,1), mins(1,2), -1*fval, 'ob', 'MarkerSize', 12)
The mesh will plot fine, but nothing comes up with the plot3 function. Where am I going wrong?

回答 (1 件)

Mike Garrity
Mike Garrity 2015 年 11 月 13 日
The ezmeshc function leaves the limits in manual mode. This means that if mins or fval are outside the limits, they won't be stretched to include the new point.
Other than that, I don't see anything wrong with this:
ezmeshc('x*sqrt(x.^2+y.^2)*besselj(1, 3.8316*sqrt(x.^2+y.^2))', [-1,1,-1,1])
hold on
plot3(0,0,.2,'ob','MarkerSize',12)

カテゴリ

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