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

Answers (1)

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

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Asked:

on 4 Apr 2020

Commented:

on 9 Apr 2020

Community Treasure Hunt

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

Start Hunting!