starting Simulink -- the output from Repeat and Integrate blocks
古いコメントを表示
I have some basic questions related to Simulink blocks: Repeat and Integrate and Dump.
My scheme looks like this:
Bernoulli Binary generator -> Repeat(10x) -> Integrate and Dump (10 samples).
So, I'd like to simply generate a random sequence, repeat each sample 10 times, then integrate every 10 samples to produce 1 output sample. But, it doesnt work this way. At the output of Bernoulli generator I see that each sample is already repeated 10 times. Why? Then, it goes to the Repeat block, so the outputs from Bernoulli and Repeat block look indentical. Then, after Integrate and Dump block, I dont get 10 times less samples but the same number of samples as the input sequence (original sequence*10). Why?
Any explanation is wellcome. Thank you.
1 件のコメント
Azzi Abdelmalek
2013 年 2 月 4 日
編集済み: Azzi Abdelmalek
2013 年 2 月 4 日
Can you post your model? Also it's not clear for me.
回答 (2 件)
Azzi Abdelmalek
2013 年 2 月 4 日
編集済み: Azzi Abdelmalek
2013 年 2 月 4 日
0 投票
If you want to check your model, add a to, workspace block, repeat your sequence 2 times, and 4 times, then compare your two y
6 件のコメント
Kaustubha Govind
2013 年 2 月 4 日
What is the "Sample Time" setting of the Bernoulli Generator, and what is the sample time of the model? Try increasing the "Sample Time" setting of the Bernoulli Generator to 10 times its current value and see if that fixes things?
Azzi Abdelmalek
2013 年 2 月 4 日
How did you check those result? (use to workspace blocks for each output)
In parameter configuration, set the step time to fixed. If at instant n, the output of Bernoulli block is 1, your repeat block output should be an array [1 1 1 1 1 1 1 1 1 1]; check this by using to workspace block
stani S.
2013 年 2 月 4 日
Azzi Abdelmalek
2013 年 2 月 4 日
編集済み: Azzi Abdelmalek
2013 年 2 月 4 日
Just under start time change type from variable step to fixed step, then just under it, set the fixed step size to 0.1. change also, the solver from continuous to discrete.
In your blocks set all sample time to -1(inherited).
stani S.
2013 年 2 月 4 日
Azzi Abdelmalek
2013 年 2 月 5 日
Then change the setting of the repeat block
カテゴリ
ヘルプ センター および File Exchange で Signal Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!