MATLAB: How to plot this signal delay unit signal I'm trying to plot this signal but I'm not sure where to start. y(n) = ax(n) + bx(n − 1) + cx(n − 2)where a=b=c=1/3 Best Answer y = filter([a b c],1,x);plot(y) Related SolutionsMATLAB: How to plot this signal Hi Negarl = 1000;% length of the signalx = zeros(l,1);Noise = 0.9*randn(l,1); % not using first element% not using first element% assuming x(0) = 0 or somthing elsefor n = 2: length(x) x(n) = x(n-1)+ Noise(n);end% or you can usex (2:length(x)) = x (1:length(x)-1) + Noise(2:length(x));plot(1:l,x)I hope it's help you. MATLAB: How to plot sinc signal easy peasy:t = -2:0.01:2;T = 2;y = 2*sinc(2*T*t) + sinc(2*T*t+1) + sinc(2*T*t-1);plot(t, y)sinc() function is defined in Signal Processing toolbox.If you don't have the toolbox, then you can define it like thisfunction y = sinc(x) y = sin(pi*x)./(pi*x); y(x==0) = 1;end Related QuestionHow create a signalHow to normalize a discrete signal
Best Answer