Plot values exception [x1 x2 x3 ...]
1 回表示 (過去 30 日間)
古いコメントを表示
I have x=1:100 and xx=[2 5 8 13 14 25 46 78 97 99] (whatever)
How to plot(x, '.b') (or scatterplot) to suppress xx values on x
0 件のコメント
採用された回答
the cyclist
2012 年 10 月 31 日
編集済み: the cyclist
2012 年 10 月 31 日
Assuming you mean that xx refers to the indices (i.e. locations in x, not the values of x), then this should work:
indicesToInclude = setdiff(1:100,xx);
plot(x(indicesToInclude),'.b')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!