Plotting colums from matrix

2 Ansichten (letzte 30 Tage)
Noah Swiston
Noah Swiston am 14 Apr. 2015
Beantwortet: William am 14 Apr. 2015
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 Kommentar
Jonathan Campelli
Jonathan Campelli am 14 Apr. 2015
Is column 12 intended to be your X or Y axis?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by