How can I handle a square wave input in a MATLAB function block?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am currently working on embedding a controller code. The input to the code is in the form of square wave pulses and as per my understanding it is handled as a time-series object. But none of the time-series commands to extract fields is plausible. Request your input on this issue.
댓글 수: 0
채택된 답변
Drew Davis
2015년 6월 25일
Assuming you are using the pulse generator, the default output of this block is a double, so no additional processing is needed to be performed inside the MATLAB function block to obtain the value of the signal
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!