我在vb调用matlab画图,代码如下:
Dim Matlab As Object
Dim result As String
Set Matlab = CreateObject("matlab.application")
result = Matlab.execute("plot(indata([1:2000],5))")
result = Matlab.execute("print-djpeg")
Form1.Image1.Picture = Clipboard.GetData()
但是,没有显示图像,matlab提示: Using Toolbox Path Cache. Type "help toolbox_path_cache" for more info.
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.