How would i display a matrix as a graph?
Show older comments
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 Comments
And what is the problem with
plot(YourMatrix)
?
Feliciano Döring
on 23 Oct 2018
KSSV
on 24 Oct 2018
How about waterfall?
Feliciano Döring
on 24 Oct 2018
Feliciano Döring
on 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
on 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
on 24 Oct 2018
Feliciano Döring
on 24 Oct 2018
Feliciano Döring
on 24 Oct 2018
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!