How do I change the amplitude of a signal based on uniform random distribution? Not sure how to proceed.
7 ビュー (過去 30 日間)
古いコメントを表示
Please help me with the "A" signal and the switch. Not sure how to proceed.
0 件のコメント
回答 (1 件)
Priyanshu Mishra
2020 年 2 月 24 日
編集済み: Priyanshu Mishra
2020 年 2 月 24 日
Hi Prashant,
In your question, transmitter output is two level NRZ signal. For generating the data bits based on uniform random distribution, you may use the follwing command:
bits = (randi([0 1],1,100)).'
The above command will generate the bit sequence of 1s and 0s with random distribution of equal probabilty of 1 and 0.
To convert these data bits into NRZ line coding please refer to the following file exchange :
This file contains a function unrz which is for unipolar NRZ signal. For your question you can modify the code. Under else condition, assign the x value as -1.
The above submission is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation".
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で PHY Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!