필터 지우기
필터 지우기

plotting a discrete signal that starts from -2

조회 수: 1 (최근 30일)
ayman daraghmah
ayman daraghmah 2015년 9월 16일
편집: Adam 2015년 9월 16일
x=[1,-2,4,6,-5,8,10];
stem(x);
i want to plot x , but x(0)=-5.

채택된 답변

Adam
Adam 2015년 9월 16일
편집: Adam 2015년 9월 16일
If you don't want just default x-axis values of 1 upto the length of the array you need to define the values and plot e.g.
stem( x, y )
where y would normally be what you have called x and x would be e.g.
x = -4:2
y = [1,-2,4,6,-5,8,10];
I guess if you want x = 0 at y = -5.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Stem Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by