accessing data from workspace
5 次查看(过去 30 天)
显示 更早的评论
hi,
how to access data stored in workspace into simulink block during simulation period
0 个评论
回答(2 个)
MarkB
2011-5-25
In addition to the FromWorkspace block, you can also use base workspace variables in most dialog boxes in Simulink. Also, if you open the Configuration Parameters, and go to the Import/Export section, you can associate the input ports and output ports with workspace variables as well. There are a few formats available for doing this, but the general idea is that you have a monotonically increasing column vector of step times, and then a matrix with rows corresponding to time steps and columns corresponding to input/output ports.
Titus Edelhofer
2011-5-25
If I understand correctly, your are looking for the "From Workspace" Block from the Sources library ...
Titus
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!