How to accumulate simulink data

1 Ansicht (letzte 30 Tage)
minkwan kim
minkwan kim am 13 Sep. 2017
Beantwortet: Suze Zhang am 20 Sep. 2017
for example, there are input data. t1->[1 2 3]' t2->[4 5 6]' t3->[7 8 9]' .................tn->[......]-------(1)
I want to make this data like this [1 2 3; 4 5 6; 7 8 9;........]'------(2)
How can i do this in 'Simulink'??
Explain more precisely
In Simulink simulation, my system block that i make by my self for a some purpose process a input data one by one like this
t1->[1 2 3]->[my system block]->output1->t2->[4 5 6]->[my system block]->output2->t3->...............
However, I want make Simulink simulation like this
1)t1->[1 2 3]->[my system block]->output1->t2->[1 2 3;4 5 6]->[my system block]->output2->t3->[1 2 3;4 5 6;7 8 9]->.....
or
2)t1->t2->t3->.....->tn->[1 2 3; 4 5 6; 7 8 9;........]->[my system block]->output
I prefer 1) way..........
How can i make 1)or2) way in simulink?? is there any library block or matlab code for simulink fcn block????

Antworten (1)

Suze Zhang
Suze Zhang am 20 Sep. 2017
Hi Minkwan,
I think you can use the Mux block in Simulink library, which combine several input signals into a vector. The documentation link to this block is provided below:

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!