How to use transpose in my graph?

29 vues (au cours des 30 derniers jours)
JACINTA ONWUKA
JACINTA ONWUKA le 16 Août 2019
Commenté : JACINTA ONWUKA le 16 Août 2019
My y-axis is in opposite direction, from 6000 to 0 insted of 0 to 6000.
imagesc(x,y,C) % this is my plot
I have tried
a) imagesc(x,y.',C) % but it did not work.
b) imagesc(x,y',C) % but it did not work.
c) imagesc(x,(flipud(y)),C) % but it did not work.
d) imagesc(x,(fliplr(y)),C) % but it did not work.
Please i need help. Thanks

Réponse acceptée

Bruno Luong
Bruno Luong le 16 Août 2019
Modifié(e) : Bruno Luong le 16 Août 2019
Put this after imagesc command
set(gca,'Ydir','normal')
or
imagesc(x,y,flipud(C) )
  1 commentaire
JACINTA ONWUKA
JACINTA ONWUKA le 16 Août 2019
it works.....Thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by