Vector to Bus conversion
18 views (last 30 days)
Show older comments
Hello all,
During working on simulink model, I am stuck in one situation that, If I have a vector with around 1000 values. and I want to convert this vector into bus. Then does anyone have any idea how can i do it in simulink model ??
0 Comments
Answers (1)
Pravarthana P
on 26 Sep 2022
Hi Shiv NileshKumar Matliwala,
I understand that you are trying to convert a vector to bus signal in your Simulink model.
A possible workaround is to use a “Demux” block followed by a “BusCreator” block which will convert to bus signal.
You can refer to the attached model "Vector2Bus.slx" which has masked sub-system and callbacks in conjunction with Simulink command line interface. This converts the vector signal of any size to bus signal.
Hope this information helps to resolve your issue!!
0 Comments
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!