How to Plot a matrix?
4 次查看(过去 30 天)
显示 更早的评论
Hi, I have a matrix that I want to visualize it. So the figure have a legend showing the greater values is with which color and vise versa.
thanks
0 个评论
回答(2 个)
Seyhan Emre Gorucu
2012-7-18
I didn't understand your question exactly but scatter might be solution for you. You need a x vector y vector and a matrix. Google matlab scatter. I can help better if you have a simple example and if you can elaborate better.
0 个评论
Richard Zapor
2012-7-18
编辑:Richard Zapor
2012-7-18
Visualizing a matrix for relative magnitudes can be done with surf or I like imagesc.
A=randi(256,[64 128]);
figure;imagesc(A)
You can threshold and change from color to grayscale.
figure;imagesc(A,[0 192]);colormap gray;axis equal;axis tight
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!