How to Generate 12 random values and use the fft command in Matlab to find its 12-point DFT

1 次查看(过去 30 天)
how to Generate 12 random values and use the fft command in Matlab to find its 12-point DFT

回答(1 个)

Sriram Tadavarty
Sriram Tadavarty 2020-4-4
Hi Riya,
You can generate random values with rand function and perform DFT with fft function.
Simply,
x = rand(12,1);
y = fft(x);
For more datils on random number generations, look here.
Hope this helps.
Regards,
Sriram

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by