reading input from workspace in simulink
显示 更早的评论
is there any work arround to read input data from workspace without using fromworkspace component in simulink so that i can read these data irrespective to define time column
thanks in advance
回答(2 个)
Azzi Abdelmalek
2013-3-2
编辑:Azzi Abdelmalek
2013-3-2
0 个投票
7 个评论
Niveen Morsi
2013-3-2
Azzi Abdelmalek
2013-3-2
What do you mean: under certain condition occurance, give an example
Azzi Abdelmalek
2013-3-2
编辑:Azzi Abdelmalek
2013-3-2
Niveen Morsi
2013-3-2
Azzi Abdelmalek
2013-3-2
You can use Matlab function block (Formerly named Embedded function). You can use A(k), A is your array, you can declares k as persistent, and increment it when it's necessary.
Niveen Morsi
2013-3-3
Azzi Abdelmalek
2013-3-3
TAB
2013-3-4
0 个投票
Use a Constant block to import the complete matrix from workspace at once. Further use Demux or Index Vector to decompose the matrix into its elements.
No need to fetch the matrix elements one by one from workspace.
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!