Calling MATLAB and running m files from Excel VBA macro

조회 수: 1 (최근 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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by