How to plot a matrix?

192 次查看(过去 30 天)
sono
sono 2012-9-25
I have a matrix I am trying to plot called "errors"
Best I can do is:
plotmatrix(errors,'b')
But that gives a weird mess of graphs:
The bottom left one is what I am shooting for.
Thank you.
  1 个评论
Tom
Tom 2012-9-25
编辑:Tom 2012-9-25
Plot Matrix isn't a plot function for a matrix, it provides a matrix of different plots. You'll want to use the standard plot function, can you provide some sample data?

请先登录,再进行评论。

采纳的回答

José-Luis
José-Luis 2012-9-25
编辑:José-Luis 2012-9-25
Given your figure it looks like you have a two-column matrix. The bottom left plot one is given by:
plot(your_data(:,1),your_data(:,2));
The top right:
plot(your_data(:,2),your_data(:,1));
The diagonals:
hist(your_data(:,1));
hist(your_data(:,2));
You get the idea...

更多回答(1 个)

Sachin Ganjare
Sachin Ganjare 2012-9-25
Use "hold on" or "hold all" command
Hope it helps!!!

类别

Help CenterFile Exchange 中查找有关 Spline Postprocessing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by