Non uniform circle marks on line plot

I have a line plot. I need to mark circles on it non-uniformly such that frequency of circles are more in the starting few points and less after that. Currently, I am doing it uniformly as: plot(t(1:200:2001),data(1,1:200:2001), '-o');

回答 (1 件)

Steven Lord
Steven Lord 2018 年 8 月 16 日

0 投票

Use the MarkerIndices property introduced in release R2016b.

2 件のコメント

AD
AD 2018 年 8 月 16 日
That also I looked for ; however it is also for uniform points and not for non-uniform points on a single line plot
Steven Lord
Steven Lord 2018 年 8 月 16 日
The code below plots markers at 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100. If that's not what you mean by "non-uniform points", please clarify exactly what you mean when you use that term.
x = 1:100;
y = x.^2;
plot(x, y, '-o', 'MarkerIndices', (1:10).^2)

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2014b

質問済み:

AD
2018 年 8 月 16 日

コメント済み:

2018 年 8 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by