Output first zero of a signal?
조회 수: 2 (최근 30일)
이전 댓글 표시
Is there anyway to output the first time at which a signal is zero (excluding at t = 0)?
댓글 수: 0
채택된 답변
Kaustubha Govind
2012년 8월 10일
You should be able to do this in Simulink with some combination of the Clock, Compare to Zero and perhaps some other basic Simulink blocks.
댓글 수: 0
추가 답변 (2개)
Azzi Abdelmalek
2012년 8월 10일
use a "switch" block with three inputs
- a signal from "clock" block (input3) %to get time
- a signal from a "constant" block (input1)
- your signal (input2)
set a condition in a "switch" block, to select which signal will be the output of switch block: the constant 0 or the time from a clock. you have just to ignore when the output is zero
댓글 수: 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!