plotting a matrix in matlab
Mostra commenti meno recenti
I have a 10 in 10 matrix. I want to plot the matrix in the way that each elements present the number. can you help me with that?
Risposte (1)
Star Strider
il 2 Mag 2020
I have no idea what result you want.
Try these:
M = randi(99, 10); % Create Matrix
[X,Y] = ndgrid(1:10);
figure
stem3(X(:), Y(:), M(:), 'filled')
grid on
figure
bar3(M)
grid on
.
2 Commenti
talayeh tavangar
il 2 Mag 2020
Star Strider
il 2 Mag 2020
My pleasure!
Still guessing what you want.
Try this:
figure
imagesc(M)
and this:
figure
surf(M)
view(0, 90)
.
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!