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 Kommentar

Tom
Tom am 25 Sep. 2012
Bearbeitet: Tom am 25 Sep. 2012
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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

José-Luis
José-Luis am 25 Sep. 2012
Bearbeitet: José-Luis am 25 Sep. 2012

6 Stimmen

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...

Weitere Antworten (1)

Sachin Ganjare
Sachin Ganjare am 25 Sep. 2012

0 Stimmen

Use "hold on" or "hold all" command
Hope it helps!!!

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by