Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

matlab color matrix,problems with scaling

2 visualizzazioni (ultimi 30 giorni)
Milenko
Milenko il 26 Set 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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?

Risposte (2)

Image Analyst
Image Analyst il 26 Set 2013
Try setting the xdata and ydata properties of the axes, something like (untested)
image(vt, 'xdata', 1:106, 'ydata', 1:14);
  1 Commento
Image Analyst
Image Analyst il 26 Set 2013
Modificato: Image Analyst il 26 Set 2013
Use
axis equal;
after you call image or imagesc.

Milenko
Milenko il 26 Set 2013
No this does not work,I got the red image.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by