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 Comment

Is column 12 intended to be your X or Y axis?

Sign in to comment.

Answers (1)

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

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Asked:

on 14 Apr 2015

Answered:

on 14 Apr 2015

Community Treasure Hunt

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

Start Hunting!