| 查看: 1048 | 回复: 0 | ||
wwa_1986金虫 (小有名气)
|
[求助]
matlab中[c,h]contour()中的c矩阵存为porous.txt文件,vba读取txt数据画等高线图
|
|
txt文件为2*7642的矩阵,具体已贴出来。运行时有误。 Dim sumpoints As Double Open "d:\porous.txt" For Input As #1 Input #1, sumpoints '从文件读出总的点数 ReDim points(0 To sumpoints * 3 - 1) As Double Dim plineObj As AcadPolyline npoints = 0 For i = 1 To sumpoints '遍历轮廓线中所有点 Input #1, x, y '从文件读出i点的x,y坐标 points(npoints) = x '第i点的x坐标 points(npoints + 1) = y '第i点的y坐标 points(npoints + 2) = 0 '第i点的z坐标 npoints = npoints + 3 Next '生成轮廓线 Set plineObj = ThisDrawing.ModelSpace.AddPolyline(points) 'points为存放顶点坐标的一维数组,大小为顶点数的三倍 Zoom All Close |
» 本帖附件资源列表
-
欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com - 附件 1 : porous.txt
2013-03-27 11:03:41, 238.82 K
» 猜你喜欢
参与限项
已经有3人回复
假如你的研究生提出不合理要求
已经有7人回复
实验室接单子
已经有4人回复
全日制(定向)博士
已经有4人回复
对氯苯硼酸纯化
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有12人回复
不自信的我
已经有12人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
北核录用
已经有3人回复












回复此楼