필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

matlab color matrix,problems with scaling

조회 수: 2 (최근 30일)
Milenko
Milenko 2013년 9월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
load('newvel.dat')
v=reshape(newvel,106,14)
vt=transpose(v)
imagesc(vt)
set(gca,'XTickLabel',{'1','2','3','4','5','6','7','8','9','10'}, 'FontSize',24)
set(gca,'YTickLabel',{'0.15','0.35','0.55','0.75','0.95','1.15','1.35'}, 'FontSize',24)
xlabel('width(km)')
ylabel('length(km)')
I have a problem,model is 106kmX14km but the image I got does not have the same proportions.How to solve this?

답변 (2개)

Image Analyst
Image Analyst 2013년 9월 26일
Try setting the xdata and ydata properties of the axes, something like (untested)
image(vt, 'xdata', 1:106, 'ydata', 1:14);
  댓글 수: 1
Image Analyst
Image Analyst 2013년 9월 26일
편집: Image Analyst 2013년 9월 26일
Use
axis equal;
after you call image or imagesc.

Milenko
Milenko 2013년 9월 26일
No this does not work,I got the red image.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by