An octave/MATLAB script to show the relation

From Class Wiki
Revision as of 14:03, 2 November 2016 by Frohro (talk | contribs) (Created page with "This MATLAB/octave script is a check for the idea that <math>\int_{- \infty}^\infty e^{j2\pi ft} df = \delta(f)</math>. <nowiki> close all; T=.01; t=-10:T:10; f=t; [ff,tt]=me...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This MATLAB/octave script is a check for the idea that .

close all;
T=.01;
t=-10:T:10;
f=t;
[ff,tt]=meshgrid(f,t);
r=exp(j*2*pi.*ff.*tt);
delta=trapz(r)*T;
plot(t,delta);
one1=T*trapz(delta)