Plotting colums from matrix

2 ビュー (過去 30 日間)
Noah Swiston
Noah Swiston 2015 年 4 月 14 日
回答済み: William 2015 年 4 月 14 日
I am looking to plot certain colums from a matrix. I want to plot colums 7-10 and column 12 all on a line graph. Thanks
  1 件のコメント
Jonathan Campelli
Jonathan Campelli 2015 年 4 月 14 日
Is column 12 intended to be your X or Y axis?

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

回答 (1 件)

William
William 2015 年 4 月 14 日
If your data array is like...... data(row,column)
a = data(:,7:10)
b = data(:,12)
hold on
plot(a)
plot(b)
hold off

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by