Azzera filtri
Azzera filtri

Using matlabinit in Excel VBA

4 visualizzazioni (ultimi 30 giorni)
Dhana Raj
Dhana Raj il 5 Lug 2011
Modificato: John Kelly il 27 Feb 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 Commento
Dhana Raj
Dhana Raj il 5 Lug 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.

Accedi per commentare.

Risposta accettata

Chirag Gupta
Chirag Gupta il 5 Lug 2011
Modificato: John Kelly il 27 Feb 2015
Check this:
You just need to add a reference (by clicking a box) to be abl eto use the functions

Più risposte (0)

Categorie

Scopri di più su Data Export to MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by