noise_spectrum

noise_spectrum - plot(F,X), xlabel('frequency / f s') grid;

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
clear all, close all, clc; n = [0:149]; x1 = randn(150,1);sound(x1);pause N = 2048; X = abs(fft(x1,N)); X = fftshift(X); F = [-N/2:N/2-1]/N;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot(F,X), xlabel('frequency / f s') grid; title('Approximate Spectrum of a Sinusoid with the FFT');...
View Full Document

Ask a homework question - tutors are online