看板 MATLAB 關於我們 聯絡資訊
如果我有程式碼如下 tx0=10:0.1:12; tx1=11:0.1:13; ty=sin(tx0); plot(tx0,ty,'b') hold on plot(tx1,ty,'b') 此為兩條線 想將它變成一條如 figure(2) plot(tx0(1:16),ty0(1:16),'b') hold on plot(tx1(6:21),ty0(6:21),'b') 這樣的圖 要怎麼去掉交線以上 只能數格子嗎... 或是有其他寫法? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.122.12