how can plot a matix?

i have a 150*9 matrix, with random numbers in the matrix. i want to plot this matrix, for example scatter plot would be proper. could any one please tell me how can i plot this matrix?
thanyou

 Accepted Answer

dpb
dpb on 30 Jul 2015
Plot what against what? Who's independent variable, who's dependent? Simply against observation number just use
plot(1:length(x),x)
where x is your data matrix

2 Comments

Joseph
Joseph on 30 Jul 2015
thank you, this helped
dpb
dpb on 30 Jul 2015
OBTW, for a scatter plot you can use scatter instead of plot; reflex ended up with the former inadvertently.

Sign in to comment.

More Answers (0)

Asked:

on 30 Jul 2015

Commented:

dpb
on 30 Jul 2015

Community Treasure Hunt

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

Start Hunting!