필터 지우기
필터 지우기

How to get 2 discrete signals into 1 graph?

조회 수: 1 (최근 30일)
Notname Notname
Notname Notname 2019년 6월 30일
댓글: Star Strider 2019년 6월 30일
Basically i need to graph this signal but I graph it part by part:
x[n]={-3n*(n^n-5), 3<=n<6
2, 0<=n<3
0, for every other n
>>n1=[0 1 2];
>> x1=[2 2 2];
>> stem(n1,x1)
>> hold
Current plot held
>> n2=[3 4 5];
>> x2=-3.*n2.*(n2.^n2-5);
>> stem(n2,x2)
But this does not work. Can i even do it part by part or is there more efficient way to draw this signal?
  댓글 수: 5
Notname Notname
Notname Notname 2019년 6월 30일
Oh okay, thank you very much.
Star Strider
Star Strider 2019년 6월 30일
My pleasure.

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

답변 (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