MATLAB學習筆記 plotyy雙y軸

一、線型設置: t=0:0.1:8; [ax,h1,h2]=plotyy(t,sin(t),t,cos(t)); % plotyy(X1,Y1,X2,Y2):以左、右不同縱軸繪製X1-Y1、X2-Y2兩條曲線。 set(h1,'linestyle','-','marker','o','color','r'); set(h2,'linestyle',':','marker','x','color',
相關文章
相關標籤/搜索