How can I get the DFT of this function?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Omar Esau Pacheco Saavedra
el 1 de Abr. de 2020
Respondida: Nikhil Sonavane
el 6 de Abr. de 2020
How can I get the DFT of this function?
at 3, 7, 16, 128 points and save the results in vectors.
sorry if my question is silly, but i dont have schoolbecause covid 19
x(n) = u(n) − u(n − 4).
0 comentarios
Respuestas (1)
Nikhil Sonavane
el 6 de Abr. de 2020
You may refer to the following code and make changes as per your requirements-
n = 512;
x=[1 1 1 1];
y = fft(x,n);
m = abs(y);
f = (0:length(y)-1)*100/length(y);
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB 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!