Escolar Documentos
Profissional Documentos
Cultura Documentos
fprintf(‘=================== \n’);
x=efni(:,1);
N=0:M-1;
h=wcl*sin(wcl*(n-M/2));
N=length(x);
dt=0.01;
A=(1:N)*dt;
figure;
xlabel(‘waktu(sec)’);ylabel(‘Amplitudo’);
grid on;
figure;
xlabel(‘waktu’)
ylabel(‘Amplitudo’)
grid on;
If (M<N);
For d=M+1:N;
h(d)=0;
end;
end;
for n=1:N;
Y=0;
for k=N+1:2*N;
h(k)=h(k-N);
end;
y(n)=Y;
end;
B=(1:length(y))*dt;
figure;
xlabel(‘waktu(sec)’);
ylabel(‘Amplitudo’);
grid on;