Using matlabinit in Excel VBA

3 visualizaciones (últimos 30 días)
Dhana Raj
Dhana Raj el 5 de Jul. de 2011
Editada: John Kelly el 27 de Feb. de 2015
Hello. What's the correct syntax for using the matlabinit command in the an Excel VBA script to initialise the Spreadsheet Link EX? I've tried the following. The first one gives me a "Sub or Function not defined" error, while the second doesn't seem to do anything when executed.
sub mat() matlabinit end sub
sub mat() Run matlabinit end sub
  1 comentario
Dhana Raj
Dhana Raj el 5 de Jul. de 2011
Actually, the VBA doesn't seem to recognise all other Matlab commands as well like MLPutVar, MLGetVar and MLEvalString. It works when I manually use the options in the Add-in drop down in Excel, but not in VBA. Link EX is initialised and running.

Iniciar sesión para comentar.

Respuesta aceptada

Chirag Gupta
Chirag Gupta el 5 de Jul. de 2011
Editada: John Kelly el 27 de Feb. de 2015
Check this:
You just need to add a reference (by clicking a box) to be abl eto use the functions
  1 comentario
Dhana Raj
Dhana Raj el 5 de Jul. de 2011
That's great. Thanks very much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Export to MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by