Info
This question is closed. Reopen it to edit or answer.
Simulink and .m file comunication. It is possible?
3 views (last 30 days)
Show older comments
Hi,
I have a system modeled in simulink. Its a PDE, so I used the finite differences to discretizate the spatial derivative and the time derivative is solved in continuous time, to do this I used the S-function block.
Now I have to get some outputs of my model, because I doing the control of my system. The problem is: the control of my system its in discrete time, because I use some outputs of my model to predict the future output. Is there somehow to comunicate my system in continuous time in a determinated instant with my .m file with the controller?
My .m file has a loop for to control my system, so in a instant (k) I need the output of my model in the simulink, to do the equations of my controller and then send the input of the controller to my simulink model again. Is it possible?
best reguards
Gustavo
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!