x₃[n]= (0.8)^n U[n] -10< n <10

댓글 수: 2

michio
michio 2016년 9월 2일
I assume you want to plot x_3 as a function of n. What is U[n]?
Some function or a variable?
Is n an integer ranging from -10 to 10?
fplot from MATLAB base function could be of help. http://www.mathworks.com/help/matlab/ref/fplot.html
U[n] is unit step function. Yes integer ranging from -10 to 10

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

 채택된 답변

Star Strider
Star Strider 2016년 9월 2일

0 개 추천

See if this does what you want:
n = -19:20;
Un = [zeros(1,10) ones(1,20) zeros(1, 10)];
x3 = 0.8.^n .* Un;
figure(1)
stem(n, x3)
grid

댓글 수: 2

Thank you so much its work...
My pleasure.
If my Answer solved your problem, please Accept it.

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

추가 답변 (0개)

카테고리

태그

질문:

2016년 9월 2일

댓글:

2016년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by