How can I get a good lowpass figure ?

% Partial Fraction H(z)
j = sqrt(-1);
omega = 0:(2*pi)/320:(2*pi)-(2*pi)/320;
H = zeros(320,1);
for i = 1:6
H = H + r(i)/(1 -exp(p(i)))*exp(-j*omega);
end
plot(H)

2 Comments

What is r? What is p?
One problem you have is that your omega is 1 x 320 but you are trying to add that to H which is 320 x 1
Not sure what your ultimate goal is here. Are you trying to illustrate the Central Limit Theorem or something? Do you want to repeatedly convolve a function? What is a "lowpass figure"? Do you mean a low-pass filtered image? Like a blurred image? Do you mean a figure with a line plot of a curve or something? You can't really low pass the whole "figure" which is what MATLAB calls a window with various controls on it (axes, text, sliders, images, graphs, buttons, etc.)

Sign in to comment.

Answers (0)

Asked:

on 3 Dec 2015

Commented:

on 3 Dec 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!