Serial to Parallel Conversion

Hello,
I want to pass digital stream in the format
1 0 1 1 1 0 1 0
into transfer function block in simulink.But my data is stored as 1011 1010
how can i convert this in simulink? please reply.its urgent -vinoth

1 件のコメント

Vinoth
Vinoth 2011 年 12 月 5 日
Required format is (m*1)..but data is stored in(1*m)format

サインインしてコメントする。

 採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 12 月 5 日

1 投票

Try the Reshape block.

6 件のコメント

Vinoth
Vinoth 2011 年 12 月 5 日
Thank you very much.
Vinoth
Vinoth 2011 年 12 月 6 日
I have one more question.
Data is stored in (m*1)double format(consider alternate 0 and 1).
I want to convert this data into rows, each row has 10 bits?
Kaustubha Govind
Kaustubha Govind 2011 年 12 月 6 日
The Reshape block should help in that case also.
Vinoth
Vinoth 2011 年 12 月 6 日
Consider i have input of (100*1)double and if i pass this to reshape block,I am expecting (1*100)double in the output. But i am getting (1*1*100)in output. I have set row vector option in reshape block.
Can you please explain me clearly?
Walter Roberson
Walter Roberson 2011 年 12 月 6 日
You might need a transpose block as well. Reshape to 10 *rows*, then transpose so that the rows become columns.
Vinoth
Vinoth 2011 年 12 月 6 日
Now it works :)we have to pass the signal as a frame based.Cheers :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by