No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7

by

 

13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

[Nu, G]=mfft( T, F)
% mfft.m:  Modified Fast Fourier Transform    
function [Nu, G]=mfft( T, F)
ns=length(F);										% Number of samples
N=1: ns;												% Indices
dt=(max(T)- min(T))/(ns-1);					% Time increment
nu1=-1/2/dt;  	nu2= 1/2/dt;					% Symmetric Nu scale
nnu=ns;												% Same number out
dnu=(nu2-nu1)/(nnu-1);						% Frequency increment
Nu= (nu1: dnu: nu2)- dnu/2;					% Frequencies
G1=dt* fft(F);   									% Raw fast Fourier transform
G2=[G1(ns/2+1: ns)  G1(1: ns/2)];			% Shift vector G1 into G2
G=i* G2.* exp(-i*(N-1)*pi*(ns+1)/ns);   	% Phase corrected transform

Contact us