plotting matrix of number as image
显示 更早的评论
hi to all, my problem is to draw my matrix... if for example i have A=magic(3); if now i want to draw all the elements of my matrix what can i do??? i try to use command plot but i have no result because its use x values versus y values for plotting... can anybody help please????
采纳的回答
更多回答(3 个)
Matt Fig
2011-5-20
surf(magic(3))
rotate3d
% or
image(magic(3))
Walter Roberson
2011-5-20
imagesc(magic(3))
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!