Cannot create ActiveX component/ File not found
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Use COM Objects in MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!