Vector to Bus conversion

21 views (last 30 days)
Shiv Nileshkumar Matliwala
Answered: Pravarthana P on 26 Sep 2022
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 ??

Answers (1)

Pravarthana P
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!!

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!