Problems using the imagesc command

1 visualización (últimos 30 días)
Thaís Fernandes
Thaís Fernandes el 26 de Mzo. de 2019
Comentada: Adam el 26 de Mzo. de 2019
I have three vectors: latitude (size 12005x1), longitude (size 12005x1), and H (size 201x12005).
I would like to plot a map of them, so I used the imagesc function. However, what I get are streaks or stripes rather than getting a map.
teste2.png
teste1.png
What I used was this:
imagesc(lon,lat,H);axis('xy');colorbar
Could someone tell me how I can fix this?Did I have to have done any manipulation in the data before to get a map?
Thanks.
  1 comentario
Adam
Adam el 26 de Mzo. de 2019
We've no idea what is in H, but judging from your code, what is in H is what you see in your figure. Although I don't know quite why you have shown two plots as you only seem to be doing one imagesc call.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by