How do you swap axis independent of the data?

1 visualización (últimos 30 días)
Joshua Ford
Joshua Ford el 14 de Abr. de 2021
Comentada: Amrtanshu Raj el 20 de Abr. de 2021
I plotted data via imagesc() however the data and the axis are the opposite way. For example the y-axis shows data for the x-dimension and the x-axis shows data for the y-dimension. I have done something wrong in my code however the data and axis are right, just do not correlate. Is there a way to simply swap the x and y axis independent of the data, so that the plot is exactly the same but with the axis flipped.
I have tried transposing and creating a different view however all these do is change the orientation of the axis and data together.
Is there a way to do this?
  1 comentario
Amrtanshu Raj
Amrtanshu Raj el 20 de Abr. de 2021
Hi,
Can you share a image of your plot and mark what you exactly want. That will help us in understanding your problem better.

Iniciar sesión para comentar.

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by