The program_2_4 will be attached in the dropbox link. https://www.dropbox.com/s/
ID: 1847609 • Letter: T
Question
The program_2_4 will be attached in the dropbox link.
https://www.dropbox.com/s/p6kn8df7btflxvo/Program_2_4%281%29.m
Explanation / Answer
s=zeros(1,50);
n=0:49;
s=2*(n.*0.9.^n);
stem(s)
d=-0.5+rand(1,50);
x=s+d;
stem(x)
m=[5 10 15 20]; //include any values of M you want
l=length(m);
for i=1:l
M=m(i);
b=ones(1,M)/M; //filter coefficients
y=filter(b,1,x); //finds response
stem(y) //plotting the response
a=input('enter your code ') //enter any number to see response for M value
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.