Azzera filtri
Azzera filtri

plot a 6x6 matrix in 3D

2 visualizzazioni (ultimi 30 giorni)
Heshani
Heshani il 10 Set 2011
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?

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 10 Set 2011
N=6;
[X,Y]=meshgrid(1:N,1:N);
surf(X,Y,A);
or plot3(),contour() depending what illustration you want.

Più risposte (1)

Walter Roberson
Walter Roberson il 10 Set 2011
Or just surf(A)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by