How can I demux a "From workspace" vector or array into individual constant blocks?
4 次查看(过去 30 天)
显示 更早的评论
If I have a vector on my workspace
a = [1 0 1 1 0 1 1 1 0]
Is it possible to use the "From workspace" block in simulink to "deMux" the vector into multiple constants? So in this example I have 9 "Constant" blocks?
0 个评论
采纳的回答
Fangjun Jiang
2021-12-9
Don't use the "From Workspace" block. Just use the Constant block, specify the value as "a" and then Demux.
2 个评论
Fangjun Jiang
2021-12-9
"From Workspace" block can be used to import time-varying values. The data has to include a time vector.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!