필터 지우기
필터 지우기

Running Matlab script from Excel

조회 수: 8 (최근 30일)
Dhana Raj
Dhana Raj 2011년 7월 5일
I have a Matlab m-file that I would like to execute from Excel. How do I write the Excel VBA code to do so?
I have Spreadsheet Link EX installed and I am able to import and export values between Excel and Matlab, but I can't seem to find an easy way to run my custom m file.

채택된 답변

Chirag Gupta
Chirag Gupta 2011년 7월 5일
With the spreadsheet Link EX installed, you should be call your custom MATLAB code using the Add-in.
Click on MATLAB Add-in -> Run custom code -> Enter your function name
For doing so in VBA, refer to
  댓글 수: 1
Dhana Raj
Dhana Raj 2011년 7월 5일
Thanks. Tried this earlier, but it didn't seem to work. Works now after I fiddled around with the file paths where my script was located.

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

추가 답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 7월 5일
  댓글 수: 2
Chirag Gupta
Chirag Gupta 2011년 7월 5일
This will not utilize the already running Spreadsheet link
Dhana Raj
Dhana Raj 2011년 7월 5일
Thanks for the suggestion.

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

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by