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:20
x=3*(-1/4).^n
stem(n,x)
Related Question