Using matlabinit in Excel VBA

7 ビュー (過去 30 日間)
Dhana Raj
Dhana Raj 2011 年 7 月 5 日
編集済み: John Kelly 2015 年 2 月 27 日
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 日
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 2011 年 7 月 5 日
That's great. Thanks very much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Export to MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by