Info
此问题已关闭。 请重新打开它进行编辑或回答。
matlab color matrix,problems with scaling
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(2 个)
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!