MATLAB Answers

0

How to use transpose in my graph?

Asked by JACINTA ONWUKA on 16 Aug 2019
Latest activity Commented on by JACINTA ONWUKA on 16 Aug 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

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Bruno Luong
on 16 Aug 2019
Edited by Bruno Luong
on 16 Aug 2019
 Accepted Answer

Put this after imagesc command
set(gca,'Ydir','normal')
or
imagesc(x,y,flipud(C) )

  1 Comment

it works.....Thanks :)

Sign in to comment.