精華區beta MATLAB 關於我們 聯絡資訊
※ 引述《Janissary (土耳其火槍兵)》之銘言: : 小弟目前想要在一張圖畫五條曲線 : 請問有沒有辦法利用for迴圈,先在圖上劃一條 : 第二條就疊在原先的圖上,這麼一來就有兩條曲線了 : 就一直重複五次,想在圖上依序劃出五條曲線 : 請問這樣要怎麼做才可以達成呢? : 謝謝各位賢拜的指點,謝謝 其實不用這麼麻煩啊 準備五條線的點data x1~x5 y1~y5 plot(x1,y1,x2,y2,x3,y3,x4,y4,x5,y5) 這樣放在後面的畫線時就會自動蓋到前面的線上 也不需要使用hold on -- Deserves death! I daresay he does. Many that live deserve death. And some die that deserve life. Can you give that to them? Then be not too eager to deal out death in the name of justice, fearing for your own safty. Even the wise cannot see all ends. Gandalf to Frodo -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.233.243.247