Re: [問題] plotyy已回收
※ 引述《fire0804 (Hi)》之銘言:
: matlab中
: plotyy 指令
: ylabel 只顯示 左y
: 請問要怎設定 右y
: 是用 get set
我在help找到了說明 應該是你要的 我就直接把它舉的例子貼上來
如果要畫 (t,z1) and (t,z2) 左邊要semilogy 右邊一般plot
[haxes,hline1,hline2] = plotyy(t,z1,t,z2,'semilogy','plot');
設定左方 ylable or linestyle
axes(haxes(1))
ylabel('要輸入的標籤1')
set(hline1,'LineStyle','--')
設定右方ylable
axes(haxes(2))
ylabel('要輸入的標籤2')
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.109.103.226
討論串 (同標題文章)