I have this error, and I don't know how to solve it.Can someone help me please?
1 回表示 (過去 30 日間)
古いコメントを表示
Error in p5_6_Simulate_Ceiling_Bounce_Model_and_Eye_Diagram (line 32)
channel_output = conv(Tx_signal,h,'same');
5 件のコメント
採用された回答
その他の回答 (2 件)
KALYAN ACHARJYA
2018 年 8 月 28 日
編集済み: KALYAN ACHARJYA
2018 年 8 月 28 日
Optical Wireless Communications: System and Channel Modelling with MATLAB By Z. Ghassemlooy, W. Popoola, S. Rajbhandari



2 件のコメント
KALYAN ACHARJYA
2018 年 8 月 28 日
In the following lines more terms there
pt = ones(1,nsamp);
Ensure that Tx_signal and h both should be the vector to avoid the error.
Walter Roberson
2018 年 8 月 28 日
OOK = randi(1,sig_length);
That line says that the rand values should be integers in the range 1 to 1, and that you want sig_length rows and columns of them.
If you want random binary you should use
randi([0 1], 1, sig_length)
参考
カテゴリ
Help Center および File Exchange で Signal Generation, Manipulation, and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!