Plotting dot to denote a a specific point in a curve

1 回表示 (過去 30 日間)
Abdoulaye Diallo
Abdoulaye Diallo 2015 年 2 月 1 日
コメント済み: Geoff Hayes 2015 年 2 月 1 日
Hello,
I was wondering how to plot a dot specifying a point along a curve that I'm plotting.
My code is the following:
x=-20:0.01:20;
y=x.^5-4*x.^4+3*x.^2+8;
y0=ones(1,length(x))*15;
hold on;
zoom xon; zoom yon;
zoom on;
plot(x,y);
plot(x,y0, '--g', 'LineWidth',2),axis([-2 4,-80, 60]);
I want to plot on the intersection between the two plots. I know where it is located (using the zoom function allows me to easily find it) but I don't know the specific syntax required to put a dot there.
Any feedback would be greatly appreciated.
  1 件のコメント
Geoff Hayes
Geoff Hayes 2015 年 2 月 1 日
Just use plot as you have done before using scalar inputs for the x and y coordinates rather than the vectors used previously.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by