how to add a sinusoidal signal and rectangular pulse in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
sin(t)+[u(t)-u(t-3)]
댓글 수: 0
답변 (1개)
Harish Saranathan
2017년 7월 27일
Hello Shashi,
You can directly use the "sin" and "heaviside" functions for the sinusoid and step respectively. The documentation for these functions can be found here:
Accordingly, the line of code will look like this:
sin(t) + (heaviside(t) - heaviside(t-3))
Harish
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!