Plotting colums from matrix

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 日

0 投票

If your data array is like...... data(row,column)
a = data(:,7:10)
b = data(:,12)
hold on
plot(a)
plot(b)
hold off

カテゴリ

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

タグ

質問済み:

2015 年 4 月 14 日

回答済み:

2015 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by