How to use transpose in my graph?

26 次查看(过去 30 天)
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

采纳的回答

Bruno Luong
Bruno Luong 2019-8-16
编辑:Bruno Luong 2019-8-16
Put this after imagesc command
set(gca,'Ydir','normal')
or
imagesc(x,y,flipud(C) )

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by