clear all
close all
clc
Mod = [];
for w=-pi:pi/100:pi
    Mod = [Mod abs(sin(w/2))];
end
figure
plot(-pi:pi/100:pi,Mod)
xlabel('\omega')
ylabel('|y[n]|')
grid on
