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!