vectors to scalars with an Embedded Matlab Function
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Azzi Abdelmalek
2012년 11월 16일
편집: Azzi Abdelmalek
2012년 11월 16일
0 개 추천
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
Owen
2012년 11월 17일
Azzi Abdelmalek
2012년 11월 18일
Yes it works
Owen
2012년 11월 19일
Azzi Abdelmalek
2012년 11월 19일
편집: Azzi Abdelmalek
2012년 11월 19일
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
2012년 11월 19일
Azzi: I didn't recommend Demux block originally because Owen wants to effectively "upsample" (or Unbuffer) the signal.
카테고리
도움말 센터 및 File Exchange에서 String에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!