plot a 6x6 matrix in 3D
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Fangjun Jiang
2011-9-10
N=6;
[X,Y]=meshgrid(1:N,1:N);
surf(X,Y,A);
or plot3(),contour() depending what illustration you want.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!