急!声音文件处理,大侠帮忙 !! 数字信号处理的课设,老师要求读入一个声音文件(比如.wav),然后对这个声音文件进行抽样,量化,FFT等处理和变换,然后画图。对于抽样,FFT什么的都知道怎么处理,但对于声音文件的读入一点想法也没有。因为只是课设,所以只要最基本的实现就可以了,没有什么特别的要求。拜托各位高手帮忙看看。同屋的用Matlab很轻松就实现了,不知道vb能不能调用matlab的功能? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果你熟悉VC++的话,可以编写出供VB调用的DLL。 如果你不会使用VC++,可以通过ActiveX技术调用MATLAB(机器中必须安装有MATLAB)。在Matlab的文档apiguide.pdf中第7章有详细的介绍并提供了例子。 VB中用ActiveX调用matlabMessage 2 in threadHi, You can call MATLAB from VB using ActiveX interface. A simple example couldbe: Sub tot1() Dim MatLab As ObjectDim Result As StringDim MReal(1, 3) As DoubleDim MImag() As Double Set MatLab = CreateObject("MatLab.Application")Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")Call MatLab.GetFullMatrix("a", "base", MReal, MImag) End Sub However, if you want to use VB just for interface, I would suggest usingMATLAB GUIs. This will be simpler as you can avoid using ActiveX. MATLAB hasa tool called GUIDE that should help you building your interface. Hope this helps.Taras临时找的,没翻译,先看看吧 一个简单的问题!在线等 请问如何将DataCombo里DataField里的字段读取出来? vb做DLL时要主意什么? 如何让一个有多个属性页的窗口做为主窗体呢? 关于vb通过编程实现多个图片合成GIF动画的求助 VB中怎么调用VC写的DLL中的类 run-time error 3709错误 help!!如何用vb程序控制将word嵌入到ie中?急问!! Bardo,能否详细解释一下那个easysvr的用法? 在sql语句中怎样限制显示格式,如4.123显示成4.13 ado连接到数据库发生的一个问题!!!望达人来帮我解决。(100分大放送) vbtab问题
如果你不会使用VC++,可以通过ActiveX技术调用MATLAB(机器中必须安装有MATLAB)。在Matlab的文档apiguide.pdf中第7章有详细的介绍并提供了例子。
Message 2 in thread
Hi,
You can call MATLAB from VB using ActiveX interface. A simple example could
be:
Sub tot1()
Dim MatLab As Object
Dim Result As String
Dim MReal(1, 3) As Double
Dim MImag() As Double
Set MatLab = CreateObject("MatLab.Application")
Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")
Call MatLab.GetFullMatrix("a", "base", MReal, MImag)
End Sub
However, if you want to use VB just for interface, I would suggest using
MATLAB GUIs. This will be simpler as you can avoid using ActiveX. MATLAB has
a tool called GUIDE that should help you building your interface.
Hope this helps.
Taras临时找的,没翻译,先看看吧