vectors to scalars with an Embedded Matlab Function
Mostra commenti meno recenti
Hello,
can anyone show me how to convert a 10x1 vector into 10 scalars with an Embedded Matlab Function?
I just don't know how to upsample the incoming vector, that is, the sample frequency at the output must be 10 times greater than at the input.
Thanks Senmeis
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 16 Nov 2012
Modificato: Azzi Abdelmalek
il 16 Nov 2012
0 voti
You can use a Demux block from Simulink/Signal Routing. At the output of Demux you will have 10 scalar at the same time. If you want them one after one, add an Index Vector block.
look at the use of Index Vector at http://www.mathworks.com/matlabcentral/answers/53615-how-can-i-convert-a-raw-matrix-into-a-sequence-of-digits
5 Commenti
Owen
il 17 Nov 2012
Azzi Abdelmalek
il 18 Nov 2012
Yes it works
Owen
il 19 Nov 2012
Azzi Abdelmalek
il 19 Nov 2012
Modificato: Azzi Abdelmalek
il 19 Nov 2012
Ah, I did'nt understand, I confused with variable step size. Then try Kaustubha's suggestion, you will need a communication system toolbox
Kaustubha Govind
il 19 Nov 2012
Azzi: I didn't recommend Demux block originally because Owen wants to effectively "upsample" (or Unbuffer) the signal.
Owen
il 21 Nov 2012
0 voti
Categorie
Scopri di più su String 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!