作者iwm5566 (ALEX)
看板Visual_Basic
标题[VB2005] 数据阵列绘图问题
时间Mon Sep 14 16:17:31 2009
各位高手好
想请问一下
我用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