数字信号处理的课设,老师要求读入一个声音文件(比如.wav),然后对这个声音文件进行抽样,量化,FFT等处理和变换,然后画图。对于抽样,FFT什么的都知道怎么处理,但对于声音文件的读入一点想法也没有。因为只是课设,所以只要最基本的实现就可以了,没有什么特别的要求。
拜托各位高手帮忙看看。同屋的用Matlab很轻松就实现了,不知道vb能不能调用matlab的功能?

解决方案 »

  1.   

    如果你熟悉VC++的话,可以编写出供VB调用的DLL。 
        如果你不会使用VC++,可以通过ActiveX技术调用MATLAB(机器中必须安装有MATLAB)。在Matlab的文档apiguide.pdf中第7章有详细的介绍并提供了例子。 
      

  2.   

    VB中用ActiveX调用matlab
    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临时找的,没翻译,先看看吧