Vector to Bus conversion

18 次查看(过去 30 天)
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 ??

回答(1 个)

Pravarthana P
Pravarthana P 2022-9-26
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!!

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by