How to plot a matrix?
205 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponse acceptée
José-Luis
le 25 Sep 2012
Modifié(e) : José-Luis
le 25 Sep 2012
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 commentaire
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Spline Postprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!