How to plot Message Signal using MATLAB ?? (Quick Question Need Help)
Mostrar comentarios más antiguos
Hi,
I have an output for a FM transmitter in the form:
y(t) = cos ( 2*pi*t + 2*pi (integral from 0,t of m(tau) dtau ) )
I need to create a message signal of the following:
m_1(t) =
{
1 when cos(t) >= 0
-1 when cos(t) < 0
}
I need to create the message signal above in MATLAB and then find the corresponding FM signal.
However, I am unclear on how to graph the message signal.. Can you please show me how?
Thank you.
Respuesta aceptada
Más respuestas (2)
Richard Brown
el 23 de Abr. de 2012
m_1 = @(t) 2*(cos(t) >= 0) - 1
t = linspace(0, 100);
stairs(t, m_1(t))
3 comentarios
PG
el 23 de Abr. de 2012
Richard Brown
el 23 de Abr. de 2012
No, don't do that, it will be horrible!! (not wrong, just horrible)
See new answer below
PG
el 23 de Abr. de 2012
Walter Roberson
el 23 de Abr. de 2012
0 votos
Try a stair plot.
1 comentario
PG
el 23 de Abr. de 2012
Categorías
Más información sobre Audio I/O and Waveform Generation 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!