I have this error, and I don't know how to solve it.Can someone help me please?
조회 수: 5 (최근 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에서 Detection, Range and Doppler Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!