how to combine signals with same sample time and different frame size
Show older comments
Hi, I'm new to simulink, and learning with documentation. I think I'm missing something obvious, but I'm kind of lost. I want to synthesize a frame-signal which is a vector whose first 8 samples come from the Sine Wave Block, and the following 4088 comes from the Random Source Block, both blocks from DSP toolbox. I use a sample ttime of 1e-7 for both blocks, but for the sine I use 8 samples per frame, and for Random source I used 4088 samples per frame. And I fail to do just that. I tried differents approachs, with differents blocks (for example, I remember using Assignement) , but I usually ends up getting an error of this kind:
"The sample time 8e-07 of 'untitled/Assignment' at input port 1 is different from the sample time 0.0004096 of 'untitled/Random Source' at output port 1."
Do you know what I'm doing wrong, or what other approaches I can use? Thanks
Answers (2)
Azzi Abdelmalek
on 3 Sep 2012
0 votes
you can use differents samlple time , but i think one sample time must be a multiple of another
Kaustubha Govind
on 4 Sep 2012
0 votes
What about if you set the Sine Wave Block to have a sample-time of 1e-7/8 and the Random Source Block to 1e-7/4088?
Categories
Find more on Signal Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!