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 2011년 7월 5일
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.

댓글을 달려면 로그인하십시오.

 채택된 답변

Chirag Gupta
Chirag Gupta 2011년 7월 5일
편집: John Kelly 2015년 2월 27일

0 개 추천

Check this:
You just need to add a reference (by clicking a box) to be abl eto use the functions

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Functions in Microsoft Excel에 대해 자세히 알아보기

태그

질문:

2011년 7월 5일

편집:

2015년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by