How does integral block in Simulink exactly work?

1 回表示 (過去 30 日間)
Pranjal Biswas
Pranjal Biswas 2017 年 1 月 20 日
コメント済み: Nikunj Kothari 2017 年 2 月 14 日
I recorded velocity data in x,y,z axis for a helicopter as a .mat file. In simulation while using the velocity data with an integral block in Simulink to get the respective positions, the results are not correlating with the real flight. The integral is in a way integrating the whole thing over time, rather than giving me the instantaneous position. Is there a way out, how can we get exact position from velocity data set sampled at about 40 Hz.
  1 件のコメント
Nikunj Kothari
Nikunj Kothari 2017 年 2 月 14 日
Using the
trapz
function to integrate the velocity data will be helpful instead of using the integral block in Simulink to solve the problem. The following documentation link will be useful:
Simulink integration blocks works by integrating the Simulink signals based on the solver time steps, and hence it would probably not be integrating the data at every 0.025 seconds as you would expect from Simulink. The default sample time for Simulink is 0.2 seconds, so the integration results will not match with the actual position.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by