Running a Matlab script from Excel
6 views (last 30 days)
Show older comments
Hi,
I've looked through and tried several of the older suggestions on this forum related to the topic without any success.
I am looking to execute a matlab script from an excel macro. I know that my VBA code is communicating with Matlab because it briefly opens Matlab but then closes without performing the calculation I would like it to compute.
The excel file that is running the macro is also the file where the Matlab script needs to pull the information from to compute my data.
I have the Matlab script currently using the uigetfile function to select the excel file you would like to use to run in the script because it may not always match the file running the macro but in most cases it will. I suspect that since I am choosing the same file that is already open in excel and is driving the script to open that that is causing an issue. Does anyone have any advice?
0 Comments
Answers (1)
Azzi Abdelmalek
on 4 Apr 2014
Edited: Azzi Abdelmalek
on 4 Apr 2014
I know that you can call a Matlab function from your Excell file. Transform your script to a function
See Also
Categories
Find more on Data Export to MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!