[問題] 繪圖 hold on 取部分圖

看板MATLAB作者 (發哥)時間11年前 (2014/03/22 16:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
如果我有程式碼如下 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
文章代碼(AID): #1JBKY1vc (MATLAB)
討論串 (同標題文章)
文章代碼(AID): #1JBKY1vc (MATLAB)