Rectangular pulse coming as trapezoid
이전 댓글 표시
I have implemented a mechanism where I am feeding a rectangular pulsetrain to a multiport switch which should give a switcing sequence of rectangular pulses. However, I am getting the profile of the pulses as trapezoidal.
Solver Selection:

Is this because of the 'Fixed-Step' Solver (ode4-runge-Kutta)?

function block input:

output of function block:
(The code is written so V takes either 1 or 3 values)

Not sure why it's coming trapezoidal.
Output of Multiport switch:
Should be rectangular pulse, but coming trapezoidal.

What can be done in this case?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simscape Electrical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!