Info
此问题已关闭。 请重新打开它进行编辑或回答。
Simulink and .m file comunication. It is possible?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!