How do i plot?

2 visualizaciones (últimos 30 días)
Wei Jun Lee
Wei Jun Lee el 25 de Abr. de 2018
Comentada: Wei Jun Lee el 25 de Abr. de 2018
Im having problem plotting the sinusoidal time signal for (5+cos(20pt))cos(2p(100)t), having Dt=0.0001s, t=0~0.02 sec.
  1 comentario
Aniket Patil
Aniket Patil el 25 de Abr. de 2018
Please provide good expression.

Iniciar sesión para comentar.

Respuesta aceptada

Pawel Jastrzebski
Pawel Jastrzebski el 25 de Abr. de 2018
Is this what you meant?
dt = 0.0001;
t = 0:dt:0.02;
y = (5+cos(20*pi*t)).*cos(2*pi*100*t);
figure;
plot(t,y);
Output:
  1 comentario
Wei Jun Lee
Wei Jun Lee el 25 de Abr. de 2018
Yes, thank you so much!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Spectral Measurements 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!

Translated by