标题:VB调用MATLAB做一个对数曲线(直角坐标)如:y=logx
只看楼主
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
 问题点数:0 回复次数:3 
VB调用MATLAB做一个对数曲线(直角坐标)如:y=logx
VB调用MATLAB做一个对数曲线(直角坐标)如:y=logx
大家帮帮忙吧
搜索更多相关主题的帖子: MATLAB 直角 对数 曲线 logx 
2007-06-15 15:43
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
得分:0 

大家帮帮忙吧,谢谢啦

2007-06-16 10:50
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
得分:0 
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
2007-06-16 13:12
zealot0713
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-6-15
得分:0 

谁来回我的帖子

2007-06-16 13:56



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




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

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