generate a ramp signal based on an external input
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
How can I generate a ramp signal based on an external input in matlab. For example, when the external input K changes its value from 0 to 1 then the ramp signal is generated. If this is implemented in simulink, is it required to use the clock block?
Thanks.
댓글 수: 2
채택된 답변
Azzi Abdelmalek
2016년 5월 13일
You can use a clock block, and multiply it by your K value, using a product block, then multiply the output of the product block by a constant to specify the slope of your rampe
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!