How can I pull or link a matrix output from m-file into simulink?
显示 更早的评论
I have an output in matrix format in m-file. For example, I have the values a11, a12, a21, a22 calculated already, and I want to link it to an existing simulink diagram as a transfer function so that anytime I open or run the simulink file, it would pull the data from the m-file and run the simulation. Thank you.
采纳的回答
更多回答(1 个)
Mahdiyar
2015-4-2
0 个投票
Hi Dan
I think that it would be better if you save the variables as a matrix in the workspace and then use the block named "From Workspace".
Regards
类别
在 帮助中心 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!