Please Solve My Problem in Integration(Embedded MATLAB Block)

9 vues (au cours des 30 derniers jours)
sridhar parthipan
sridhar parthipan le 5 Avr 2011
function p= fcn(x)
p=int (x)
this is my program in embedded block
here,
x=step input to embedded block; p=output from embedded block to plot
I have error in these steps please help me and assist me to rectify this error

Réponse acceptée

Arnaud Miege
Arnaud Miege le 5 Avr 2011
Which int function are you using/intending to use?
I am going to assume that you want to integrate your input signal with respect to time. If that's the case, then you don't need an Embedded MATLAB Function block, use an Integrator block instead, that's what it's there for.
If I misunderstood your question, please clarify and provide the error message that you're getting.
HTH,
Arnaud
  2 commentaires
sridhar parthipan
sridhar parthipan le 19 Avr 2011
Thanks for your answer.
Actually, I designed my mathematical model using MATLAB/SIMULINK it is for some control purpose in my project. During feedback when using two "INTEGRATOR BLOCK" in my model i've error "at some time integrator output become infinity or NAN" i tried by applying limits it causes the constant output (i.e., lower limit output from one integrator and upper limit output from another integrator)from integrator. Because of this i get constant error output form two integrator.
Arnaud Miege
Arnaud Miege le 19 Avr 2011
It sounds like your integrators are saturating. You need to figure out what's causing them to saturate and fix the root cause. Using Embedded MATLAB block is not going to help. Use scopes to look at the various signals around your feedback to try and figure out where the error is.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by