how to combine signals with same sample time and different frame size
Mostra commenti meno recenti
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
Risposte (2)
Azzi Abdelmalek
il 3 Set 2012
0 voti
you can use differents samlple time , but i think one sample time must be a multiple of another
Kaustubha Govind
il 4 Set 2012
0 voti
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?
Categorie
Scopri di più su Signal Generation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!