How to accumulate simulink data
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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????
0 commentaires
Réponses (1)
Suze Zhang
le 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:
0 commentaires
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!