An octave/MATLAB script to show the relation: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 14:03, 2 November 2016

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)