How can I generate a continious signal? Generating a pulse?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
My problem is to generate a pulse. While x-axis values are between 0 and 1, y-axis is equal to 1 except that x-axis are between 0.5 and 0.75, y is equal to -1.
How can I create a unit step like this?
Thanks
채택된 답변
Azzi Abdelmalek
2013년 3월 16일
편집: Azzi Abdelmalek
2013년 3월 16일
t=0:0.001:1
y=ones(1,numel(t))
y(t>0.5 & t<0.75)=-1
plot(t,y,'r','linewidth',3)
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!