How to plot a matrix?
202 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sono
el 25 de Sept. de 2012
Comentada: Madalena Francisco
el 14 de En. de 2023
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 comentario
Respuesta aceptada
José-Luis
el 25 de Sept. de 2012
Editada: José-Luis
el 25 de Sept. de 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 comentario
Más respuestas (1)
Sachin Ganjare
el 25 de Sept. de 2012
Use "hold on" or "hold all" command
Hope it helps!!!
0 comentarios
Ver también
Categorías
Más información sobre Spline Postprocessing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!