Calculation time comparison in Matlab -
i need in doing calculation time comparison in matlab:
i have adio file once fft , mesure time took calculate
and compare time take matlab dft on signal
1) how make matlab sample execution time? 2) how forec matlab dft? fft no problem me have command it
fid = 'f1lsenae.wav'; [x, fs] = audioread(fid); x1=x(1:32000); y= fft(x) plot y thanks help
assaf
to time execution of code sample, use tic ... toc construct:
fid = 'f1lsenae.wav'; [x, fs] = audioread(fid); x1=x(1:32000); tic; % begin timing y= fft(x) toc; % end timing plot y you "force matlab dft". keep in mind fft refers efficient algorithm computing dft. already, matlab's fft "is discrete fourier transform (dft) of vector x".
Comments
Post a Comment