MATLAB: How to write this in MATLAB MATLAB Hi guys , Please How I can write x[n]=3(-1/4)^n u[n] , 1 ≤ n ≤ 20 in matlab.. Best Answer n=1:20x=3*(-1/4).^nstem(n,x) Related SolutionsMATLAB: How to plot signal with unit step You can use heaviside function: n = -5:1:20; x = ((4/5).^n).*heaviside(n); stem(n,x)Bet be aware heaviside(0)=0.5 MATLAB: How can i display this sequence in a graph n=.05:.01:.3;x_n=(n.^2-1)./(n.^2);plot(n,x_n); Related QuestionZ-transform of unit step functionI want to write a functionZ Trandform matlab input
Best Answer