Filter löschen
Filter löschen

How to output two numbers as an array in Simulink?

11 Ansichten (letzte 30 Tage)
ana take
ana take am 21 Jan. 2018
Beantwortet: Priyesh Rabadiya am 23 Jan. 2018
I have two numbers 2 and 3(which are given as input from two different blocks), for example, and I want to output them as an array [2 3].This array is given as an input in another block.Can I use Vector Concatinate block?

Akzeptierte Antwort

Priyesh Rabadiya
Priyesh Rabadiya am 23 Jan. 2018
You can use Mux which will multiplex the signals in single line.

Weitere Antworten (1)

Birdman
Birdman am 21 Jan. 2018
Try the attached model. To output two numbers as array, I used MATLAB Function block. See how the function works and adapt it into your problem. Hope this helps.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by