フィルターのクリア

Removing 1 column of ydata

1 回表示 (過去 30 日間)
Benjamin
Benjamin 2012 年 6 月 5 日
Hi there, I was wondering if there was a way to delete a single column of ydata in a plot without having to do it manually each time?
Thanks, Ben

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 5 日
... Just don't plot it?
not_col = 7; %for example
yt = ydata;
yt(:,not_col) = [];
plot(yt)
or
not_col = 7; %for example
plot( ydata(:, setdiff(1:size(ydata,2), not_col) ))
  1 件のコメント
Benjamin
Benjamin 2012 年 6 月 6 日
Thanks so much Walter, still trying to learn MatLab and this did the trick perfectly.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by