I have this error, and I don't know how to solve it.Can someone help me please?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Alexandra Diaconu
el 28 de Ag. de 2018
Comentada: Alexandra Diaconu
el 28 de Ag. de 2018
Error in p5_6_Simulate_Ceiling_Bounce_Model_and_Eye_Diagram (line 32)
channel_output = conv(Tx_signal,h,'same');
5 comentarios
Respuesta aceptada
M
el 28 de Ag. de 2018
Editada: M
el 28 de Ag. de 2018
The problem is that Tx_signal is not a vector but a matrix of size 1000 x 1000.
From the help of conv function:
C = conv(A, B) convolves vectors A and B..
You can look at conv2:
C = conv2(A, B) performs the 2-D convolution of matrices A and B.
2 comentarios
Más respuestas (2)
KALYAN ACHARJYA
el 28 de Ag. de 2018
Editada: KALYAN ACHARJYA
el 28 de Ag. de 2018
Optical Wireless Communications: System and Channel Modelling with MATLAB By Z. Ghassemlooy, W. Popoola, S. Rajbhandari
2 comentarios
KALYAN ACHARJYA
el 28 de Ag. de 2018
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
el 28 de Ag. de 2018
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)
Ver también
Categorías
Más información sobre Signal Generation, Manipulation, and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!