Filter löschen
Filter löschen

How does integral block in Simulink exactly work?

2 Ansichten (letzte 30 Tage)
Pranjal Biswas
Pranjal Biswas am 20 Jan. 2017
Kommentiert: Nikunj Kothari am 14 Feb. 2017
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 Kommentar
Nikunj Kothari
Nikunj Kothari am 14 Feb. 2017
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by