Borrar filtros
Borrar filtros

Plotting a signal sin(2*pi*f*t) and obtaining a discrete periodic signal.

16 visualizaciones (últimos 30 días)
Given:
Discreet signal: sin((2𝜋f/fs)∙n∙T)for n=0,1,2,..
f=26;
fs=200;
n=2;
dt=0.005;
t=n*dt;
Required:
T==> I have to pick an integer value of T>1 such that sin((2𝜋f/fs)∙n∙T)is a periodic discrete signal.
How to graph periodic continuous signal sin(2𝜋ft) and periodic discrete signal sin((2𝜋f/fs)∙n∙T)

Respuesta aceptada

Setsuna Yuuki.
Setsuna Yuuki. el 10 de Nov. de 2020
You can use plot to graph continuous signal, and stem to graph discrete signal.
For example:
t = 0:6e-2:1;
signal = sin(2*pi*t);
subplot(2,1,1)
stem(t,signal)
subplot(2,1,2)
plot(t,signal)
  1 comentario
Ahsan Q
Ahsan Q el 10 de Nov. de 2020
How should I go about finding the T value so that sin((2𝜋f/fs)∙n∙T) is a periodic signal. I saw that you only plotted sin(2*pi*t). Otherwise the answer is perfect!

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by