How create a signal?
이전 댓글 표시
Hi my english is not good but i will try.
i need create the next signal:
m2(t)=u(t+1)+6*u(t-3)-10*u(t-6)
u(t):impluse of amplitude equal 1
how i cant do it?
well after i need modulate... but i dont need help in that.
thx :)
댓글 수: 3
Azzi Abdelmalek
2012년 10월 28일
what about the width of your pulse, or are you working with discret time?
Felipe Farias
2012년 10월 29일
Azzi Abdelmalek
2012년 10월 29일
if the pulse had a width(even with eps width) that means it's continuous. Check my answer, you can set the width and the amplitude
채택된 답변
추가 답변 (1개)
Wayne King
2012년 10월 28일
Your signal is just a superposition (sum) of shifted unit step sequences.
For t = -1,0,1,2 m2(t) = 1
For t = 3,4,5 m2(t) = 7
For t = 6,7,8,9,...
m2(t) = -3
u1 = ones(100,1);
u2 = [zeros(4,1); 6*ones(96,1)];
u3 = [zeros(7,1); -10*ones(93,1)];
m2 = u1+u2+u3;
n = -1:98;
stem(n,m2,'markerfacecolor','b')
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!