Hi I have a basic doubt about the integrator block in simulink

Normally when we integrate a sine wave we will be getting a cosine wave, right? But when I tried to do the same in simulink I got a sine wave which looks like it has been clamped to positive side, meaning the whole wave was shifted upwards. I dont understand this. Please help me...

 Réponse acceptée

Mischa Kim
Mischa Kim le 1 Avr 2014
Modifié(e) : Mischa Kim le 1 Avr 2014
Sreerag, the integral of sine is a negative cosine plus an integration constant. Integrating a sine between 0 and pi results in 2, which is also the peak value you should see in the scope (if the intial condition in the integrator block is set to zero). If you don't open the Model Configuration Parameters in the Simulink Model window and adjust the solver options, e.g., solver, step sizes, relative, and absolute tolerances.

2 commentaires

I accept the idea. But what if I have a signal coming out of some equation as an alternating quantity and I want to integrate the same, then I wont have an idea about what will be the integration constant. So the output will be erroneous, right?
No. Once you have defined limits of integration (which you have once you define intitial conditions and the simulation time) there is no more integration constant, the result is unique.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by