How to Plot a matrix?
조회 수: 1 (최근 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!