You can use the command sound(x,fs) to listen to the entire audio file. The time scale in the data is compressed by a factor of 10 to raise the pitch and make the call more clearly audible. Because blue whale calls are low-frequency sounds, they are barely audible to humans. Load and format a subset of the data in, which contains a Pacific blue whale vocalization. This data can be found in a library maintained by the Cornell University Bioacoustics Research Program. Many specialized implementations of the fast Fourier transform algorithm are even more efficient when n has small prime factors, such as n is a power of 2.Ĭonsider audio data collected from underwater microphones off the coast of California.
This computational efficiency is a big advantage when processing data that has millions of data points. The fast Fourier transform algorithm requires only on the order of n log n operations to compute. The following code may help you to plot the first, 3rd and fifth harmonics of the signal. Melden Sie sich bei Ihrem MathWorks Konto an Melden Sie sich bei Ihrem MathWorks Konto an Access your MathWorks Account.
Using the Fourier transform formula directly to compute each of the n elements of y requires on the order of n 2 floating-point operations.