[VB2005] 數據陣列繪圖問題

看板Visual_Basic作者 (ALEX)時間16年前 (2009/09/14 16:17), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
各位高手好 想請問一下 我用MATLAB匯入兩筆陣列 然後想在VB2005的picturebox中將數據繪圖 就像是在MATLAB中的plot的指令一樣 可是我利用下列的程式碼 在picturebox中都沒有出現東西 可以請知道各位高手幫忙一下嗎? 謝謝.... 下列是我部分的程式碼 dim T1array(1000) as pointF dim gra as graphics dim bluepen as new pen(color.blue,3) gra=picturebox1.creategraphics gra.clear(color.white) for i = 0 to 999 T1array(i).X=T1x T1array(i).Y=T1y next gra.drawlines(bluepen,T1array) gra.dispose() -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.130.89.253
文章代碼(AID): #1AhVmSQG (Visual_Basic)