MATLAB Answers

Using matlabinit in Excel VBA

조회 수: 16(최근 30일)
Dhana Raj
Dhana Raj 5 Jul 2011
편집: John Kelly 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

Dhana Raj
Dhana Raj 5 Jul 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.

로그인 to comment.

채택된 답변

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

  댓글 수: 1

Dhana Raj
Dhana Raj 5 Jul 2011
That's great. Thanks very much.

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by