How can I mix two signals in MATLAB?
Mostrar comentarios más antiguos
I have two signals stored in vectors, one of them is a 4-QAM baseband signal(m), and the other is a simple Local Oscillator sinusoid signal(Lo). Then I've simulated the mixing like this:
Rfsignal=m.*Lo;
and then i filtered out the low frequency component of Rsignal, but after that, the radio signal doesn't look like the baseband, and I couldn't get back the digital data after demodulation. I know there are mixer objects in Simulink, but i want to use matlab coding, because it's much more practical. So I'm looking for a coding solution to properly mixing the baseband and the Lo signals in such a way that the Rf signal looks similar to the baseband.
Thanks a lot.
Respuestas (1)
Star Strider
el 25 de Nov. de 2020
0 votos
Ther esult would appear to be a single-sideband suppresed-carrier signal (with only the upper sideband). See if the demod function will do what you want.
6 comentarios
Balint Csejtei
el 25 de Nov. de 2020
Star Strider
el 25 de Nov. de 2020
The only approach I can suggest to debugging this is to see if the modulate function produces the same result as your code, and then see if demod correctly returns the modulating signal from the signal that modulate creates.
Also, compare your result with the result modulate produces to see if there are any significant differences. Do that in both the time-domain and frequency-domain.
Balint Csejtei
el 27 de Nov. de 2020
Star Strider
el 27 de Nov. de 2020
I have no idea. I have only done analogue modulation.
Balint Csejtei
el 27 de Nov. de 2020
Star Strider
el 27 de Nov. de 2020
Quite possibly. I have never tried to do something like that.
I suggest you look throiugh the Communications Toolbox documentation to see if something like what you want to do exists there, or perhaps gives some idea of how to do what you want to do. (I do not have the Communications Toolbox, and so have no experience with it.)
Categorías
Más información sobre Communications Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!