How to accumulate simulink data
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Suze Zhang
2017 年 9 月 20 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!