Running a Matlab script from Excel
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Azzi Abdelmalek
am 4 Apr. 2014
Bearbeitet: Azzi Abdelmalek
am 4 Apr. 2014
I know that you can call a Matlab function from your Excell file. Transform your script to a function
Siehe auch
Kategorien
Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!