How would i display a matrix as a graph?
Afficher commentaires plus anciens
I have a matrix in which the values are mainly in the main diagonal. What i want to do is create a bigger matrix in which each row of the matrix is a line so it would show the values of each row across several lines. So for example if i have an identity 3x3 matrix, it would be three lines with spikes on the main diagonal.
13 commentaires
And what is the problem with
plot(YourMatrix)
?
Feliciano Döring
le 23 Oct 2018
KSSV
le 24 Oct 2018
How about waterfall?
Feliciano Döring
le 24 Oct 2018
Feliciano Döring
le 24 Oct 2018
pcolor and/or imagesc omits one row/column on the edge, so if you have a 3x3 matrix you will get 2x2 squares. This is not a problem with imshow. The problem with imshow is that you need regular spacing between pixels. Anyway, is this type of grid what you were going for?
Feliciano Döring
le 24 Oct 2018
Maybe it's clear to you how you want to visualize your data, maybe not, maybe you only have a vague picture in your head. Regardless, what you just said does not describe how you want to visualize your data. The nature of your data does not describe how you want to visualize your data. In fact, the nature of your data does not matter at all. All that matters is how you want to visualize the data in question. Can you... draw a sketch by hand?
Feliciano Döring
le 24 Oct 2018
Feliciano Döring
le 24 Oct 2018
Feliciano Döring
le 24 Oct 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
