Hi guys , Please How I can write
x[n]=3(-1/4)^n u[n] , 1 n ≤ 20 in matlab..

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 3월 18일

0 개 추천

n=1:20
x=3*(-1/4).^n
stem(n,x)

댓글 수: 2

Abdullah AlHarbi
Abdullah AlHarbi 2016년 3월 18일
Thanks Sir ,, But how I can write this x1[n] = u[n-5] ,1 ≤ n ≤ 10
n=1:10
x1=heaviside(n-5)+0.5*not(n-5)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by