- Send the variables of objective function from Excel to MATLAB using function MLPutMatrix
- Call MLEvalString (from Excel) to invoke the MATLAB function file that optimizes these variables
- Call MLGetMatrix (from Excel) to read in the resulting variables from MATLAB
Regarding data exchange between excel & Matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohamed
am 11 Dez. 2013
Bearbeitet: Harsheel
am 12 Dez. 2013
Hello, I would like to ask a question regarding data exchange between excel & Matlab. I am using the built-in GA toolbox for optimization of a certain problem. The objective function is inserted in excel as it is exported from a third party program. The variables of the objective function are optimized in GA toolbox then send these variables to the excel to calculate the newer value of the objective function and so on. My question is how can I keep sending the values between matlab & excel automatically. I mean I would like to see the value updated in excel while matlab is running. Also, is it possible to break the loop of GA toolbox to perform some mathematical operations in excel for the objective function. Thanks in advance
0 Kommentare
Akzeptierte Antwort
Harsheel
am 12 Dez. 2013
Bearbeitet: Harsheel
am 12 Dez. 2013
you can try using the Spreadsheet Link EX toolbox. Basically, you can roughly use the following steps:
In essence, you'd be using MLPutMatrix, MLEvalString and MLGetMatrix.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from 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!