Cannot create ActiveX component/ File not found
古いコメントを表示
Hello again , am using vb.net and i have a matlab (.m) function and i want to run it inside vb.net so i used:
Dim Matlab As Object
Dim Result As String
Then i created a button so that when i press it it plots the graph of the matlab function using:
Matlab = CreateObject("Matlab.Application")
Result = Matlab.Execute("cd C:\Users\Bo$$\Documents\MATLAB\DF.m")
But i get this error:
(Cannot create ActiveX component)
on the command
Matlab = CreateObject("Matlab.Application")
So i tried:
Shell(Matlab.execute("DF"))
instead of the (Result) command. The plot appeared but i got this error (File not found) and i couldn't proceed with my program can you help me out thanks.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Use COM Objects in MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!