How to accumulate simulink data

5 visualizaciones (últimos 30 días)
minkwan kim
minkwan kim el 13 de Sept. de 2017
Respondida: Suze Zhang el 20 de Sept. de 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????

Respuestas (1)

Suze Zhang
Suze Zhang el 20 de Sept. de 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:

Etiquetas

Community Treasure Hunt

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

Start Hunting!