Cannot create ActiveX component/ File not found
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!