Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

PROGRAM:

clc;
close all;
clear all;
x=[1 1 1 1]; a=1:4;
for i=1:4
s=0;
for j=1:4
s=s+x(j)*exp(-sqrt(-1)*2*pi/4*(i-1)*(j-1));
end
a(i)=s;
end

OUTPUT:
a=

4.0000 -0.0000 - 0.0000i 0 - 0.0000i 0.0000 - 0.0000i

You might also like