Why does the “ Variable Time Delay” output incorract waveform in simulink ?

A square wave is used to be the input of the “Variable Time Delay” module. However, the output is not a square wave. It has a certain amount of rise time and fall time. How to make the output correct ?

 採用された回答

Mischa Kim
Mischa Kim 2014 年 4 月 18 日
編集済み: Mischa Kim 2014 年 4 月 18 日

2 投票

Lee, the reason is the step size. Decrease it and the signal will look more and more like a "perfect" square wave: CTRL+E (Configuration Parameters) and set max step size (in Solver options, using ode45, for example) to, e.g., 0.01 to see what happens.

2 件のコメント

lee
lee 2014 年 4 月 18 日
Thank you very much
Shambhavi Tripathi
Shambhavi Tripathi 2016 年 3 月 8 日
Thank you!!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by