2017福田区小学排名:call matlab.quit 为什么不好用呢
来源:百度文库 编辑:高校问答 时间:2024/05/09 04:08:54
我在用activex技术vb调用matlab时用到了call malat.quit 命令,但是打开的窗口关不上
之前能关上 ,但我在你个过程中调用了另一个窗口之后,就关不上了,这是为什么呀
Dim Matlab As Object
Set Matlab = CreateObject("matlab.application")
...
form3.show
call matlab.quit
之前能关上 ,但我在你个过程中调用了另一个窗口之后,就关不上了,这是为什么呀
Dim Matlab As Object
Set Matlab = CreateObject("matlab.application")
...
form3.show
call matlab.quit
Dim Matlab As Object
Dim Result As String
Picture2.Cls
Clipboard.Clear
Clipboard.SetText Path
Set Matlab = CreateObject("Matlab.Application")
Result = Matlab.Execute("clear")
Result = Matlab.Execute("STR=clipboard('paste');)")
Result = Matlab.Execute("I=imread(STR)")
Result = Matlab.Execute("J = edge(I,'canny',0.2);imshow(J)")
Clipboard.Clear
Result = Matlab.Execute("print-dbitmap-fl")
Picture2.Picture = LoadPicture
Picture2.Picture = Clipboard.GetData()
Call Matlab.quit
为什么显示不出图象?