Skip to content

Instantly share code, notes, and snippets.

View talk2laton's full-sized avatar

Lateef Adewale Kareem talk2laton

View GitHub Profile
function FourierDecomp
global delx1 delx2 dely1 dely2 DELX1 DELX2 DELY1 DELY2 xLCf1 yLCf1 xLCf2 ...
yLCf2 minXf1 minXf2 minYf1 minYf2
close all
t = 0:pi/50:6*pi;
X1 = 4*cos(t)/pi;
Y1 = 4*sin(t)/pi;
X2 = 4*cos(3*t)/(3*pi);