positiveFFT - %get the frequency interval freq=k/T; %create...

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

View Full Document Right Arrow Icon
function [X,freq]=positiveFFT(x,Fs) N=length(x); %get the number of points k=0:N-1; %create a vector from 0 to N-1 T=N/Fs;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %get the frequency interval freq=k/T; %create the frequency range X=fft(x)/N; % normalize the data end...
View Full Document

Ask a homework question - tutors are online