continuous integrator vs discrete-time integrator
古いコメントを表示
Hello.
I'm trying to convert the simulink model with continuous system to discrete system.
I replaced integrator block with discrete-time integrator block.
However the results showed different values and I can not figure out what is the problem of different results.
In the figure, x1 always return 0 regardless of the input constant.

採用された回答
その他の回答 (3 件)
Pankaj
2014 年 2 月 26 日
0 投票
I think you are using forward euler as the integration type in the discrete integrator.
Try using Trapezoidal Integration type in the settings of Discrete Integrator block, you will see same results.
Moreover, this does raise a question of the usage of forward Euler and backward euler integration type? when trying to convert a continuous system to a discrete system.
Please reply if someone has answers?
1 件のコメント
Radhakrishna Kothamasu
2016 年 2 月 3 日
Yes, I believe so. Euler approximations are to convert a continuous signal flow to discrete one. Each of the Forward, Backword and Traphezoidal methods have it's own advantages and disadvantages. Safe approximation normally is Trapezoidal method. correct me if I am wrong.
Komal Garlapati
2016 年 4 月 21 日
0 投票
By default, the sample time of discrete time integrator block is 1 second. It will accumulate the data sampled at the intervals of one second. It misses a lot of data, if your step time is low. To get the same results from the discrete integrator and continuous integrator blocks, give the sample time of the discrete time integrator same as the one you mentioned in the Simulation>Model Configuration Parameters>Solver>Relative tolerance.
Janakiraman S
2016 年 11 月 8 日
編集済み: Janakiraman S
2016 年 11 月 8 日
0 投票
THE SCREENSHOT SETTINGS WILL GIVE DISCRETE AND CONTINOUS SIMILAR RESULTS

THE SCREENSHOT SETTINGS WILL GIVE DISCRETE AND CONTINOUS SIMILAR RESULTS
カテゴリ
ヘルプ センター および File Exchange で Visualization についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!