MATLAB: How can we implement dspDSP System Toolbox y(n)=(1/2)*(x(n)*A(1)+y(n-1)*A(2)-y(n-2)*A(3)+y(n-3)*A(4)-y(n-4)*A(5)); n=1:200 Best Answer A=[ 1 2 3 4 5]D=[1 A(2) -A(3) A(4) -A(5)]N=A(1)/2x=ones(1,200) % your input signaly=filter(N,D,x)stem(y) Related SolutionsMATLAB: How to plot this figure? REad about stem. y = rand(1,10) ; stem(y)xlabel('x')ylabel('y') MATLAB: Create a Cell Array of Vectors populated with ones repmat also works for cell arraysC = repmat({nan(1, 200)}, 10, 3) Related Question(input given as ?[?] = {1, 2,3} impulse given as ℎ[?] = {4,5,6} for 0 ≤ ? ≤ 2.) there is an error in the output..in sketching of y[n], we required a discrete in time signal but the output signal is continuous as seen clearly in screenshot belowIn an assignment A(:)=B, the number of elements in A and B must be the same error.How can I solve difference equation with initial condition.
Best Answer