[問題] axis 的 x y 軸 左右上下相反已回收

看板MATLAB作者 (tabletennis)時間15年前 (2010/10/26 15:34), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
只有上下可以相反 axis ij 但是左右不行 plot(x,y) 5 / 4 / 3 / 2 / 1 / 0 1 2 3 4 5 axis ij 0 1 \ 2 \ 3 \ 4 \ 5 1 2 3 4 5 要怎樣直接變成 0 1 / 2 / 3 / 4 / 5 4 3 2 1 0 有一種是 for x=5:-1:0 for y=1:5 plot(x,y) end end axis ij 或者 for x=5:-1:0 for y=5:-1:0 plot(x,y) end end 我比像想問 既然有 axis ij 這個可以上下相反 那左右相反的 有嗎? axis ji ? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.201.53

10/26 17:39, , 1F
plot(x,y);view(180,90)
10/26 17:39, 1F

10/27 00:55, , 2F
直接控制就可以了。 set(gca,'XDir','reverse')
10/27 00:55, 2F
文章代碼(AID): #1CneISTl (MATLAB)