plot a 6x6 matrix in 3D
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to plot A (6,6) matrix with row number as x axis, column number as y axis and the value of A(x,y) as z axis. what is the function to use?
0 commentaires
Réponse acceptée
Fangjun Jiang
le 10 Sep 2011
N=6;
[X,Y]=meshgrid(1:N,1:N);
surf(X,Y,A);
or plot3(),contour() depending what illustration you want.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!