Linking Simulink with m.file in MATLAB
Ältere Kommentare anzeigen
Hi, I have the model of a power system in Simulink. I need to use some variable values in simulink to write down a linear programming (Linprog)in an m.file and use the results again in the Simulink. I know that I should extract the inputs used for the Linprog from simulink to workspace. Can anyone tell me how I should call those variables from workspace and how to return the results to Simulink?
Thanks Mitra
Antworten (1)
Kaustubha Govind
am 29 Apr. 2013
0 Stimmen
You need to create a Simulink block that will execute your MATLAB code as part of the model. Please see the section MATLAB Function Blocks for a list of available options.
1 Kommentar
mitra
am 13 Mai 2013
Kategorien
Mehr zu Sources finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!