标题:这个代码哪里错了?VB调用MATLAB的
取消只看楼主
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
 问题点数:0 回复次数:1 
这个代码哪里错了?VB调用MATLAB的
Option Explicit
Public objMATLAB As Object
Private Sub Command1_Click()
Dim h1, h2 As String '定义高度
Dim l As String '定义频率
Dim d As String '定义距离
Dim calcity, x As String
h1 = Text1.Text
h2 = Text2.Text
calcity = "69.55 + 26.16 * (Log(1500) / Log(10)) - 13.82 * (Log(" & h1 & ") / Log(10)) + (44.9 - 6.55 * (Log(" & h1 & ") / Log(10))) * (Log(" & d & ") / Log(10)) - (1.1 * (Log(1500) / Log(10)) - 0.7) *" & h2 & "+ (1.56 * (Log(1500) / Log(10)) - 0.8)"
l = "fplot(@calcity,[0 30])"
Text3 = objMATLAB.execute(l)
End Sub
Private Sub Form4_initialize()
Set objMATLAB = CreateObject("matlab.application")
End Sub
搜索更多相关主题的帖子: MATLAB Log String 
2007-06-16 13:13
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
得分:0 

谁来回我的帖子

2007-06-16 13:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-147980-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.166739 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved