MATLAB program to design a digital high
MATLAB program to design a digital high
% Specifications
% Normalized frequencies
if A <= 21
beta = 0;
elseif A <= 50
else
end
if mod(N, 2) == 0
end
n = -(N-1)/2 : (N-1)/2;
window = hamming(N)';
h = h .* window;
figure;
subplot(2, 1, 1);
stem(n, h);
xlabel('n');
ylabel('h[n]');
grid on;
subplot(2, 1, 2);
plot(f, 20*log10(abs(H)));
xlabel('Frequency (Hz)');
ylabel('Magnitude (dB)');
grid on;