フィルターのクリア

Calling MATLAB and running m files from Excel VBA macro

2 ビュー (過去 30 日間)
Surae
Surae 2011 年 7 月 19 日
コメント済み: Ali Motagamwala 2020 年 5 月 1 日
I want to ask about calling MATLAB and executing '.m' files using Excel VBA. I have searched about this, but I couldn't find the right solution yet. Do you have any idea how I should write VBA macros to do these?
- MATLAB version: R2008b
- m file: f_ann.m
Thanks a lot in advance for your time and reading my question.

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 19 日
Please refer to this example

Chirag Gupta
Chirag Gupta 2011 年 7 月 19 日
You can also achieve the same using MATLAB as a COM server. Please see sample code below:
VBA is very similar.

カテゴリ

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