How can I set spacing between markers in a plot?

3 ビュー (過去 30 日間)
Elin
Elin 2014 年 1 月 9 日
I have problem with setting marker spacing in a plot. I have two plots for the same curve to create marker at known distance, but I only want one legend that is a combination of the two '-dr'. How can I achieve this? I havetried to use "line_fewer_markers" but it did not work. Let us say I have: x=[1 3 5 7 9 11]; y=[1 2 6 18 30 31]; figure(1) hold on h1=plot(x,y,'-r'); h2=plot(x(1:2:end),y(1:2:end),'dr'); legend(......

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by