first order nonlinear ordinary differential equation simulink

조회 수: 2 (최근 30일)
Jeevan Patil
Jeevan Patil 2012년 2월 7일
답변: Sebastian Castro 2015년 7월 21일
I want to solve first order nonlinear differential equation.
dy/dt = 10*y ^ k (y has power k)
Is it possible to solve this equation in simulink. I tried to solve this equation in simulink, but it is showing error that output is NaN at some point of time.
I am passing output of integral block to the input of math function block (power). second input to math function block is k.
Output of math-function block is given input to gain block (gain value 10). and finally output of this block is given to input of integral block.
Is it the right approach??
If this is not right approach then how to solve this equation in simulink.
Regards Jeevan Patil
  댓글 수: 1
RahulTandon
RahulTandon 2015년 7월 10일
it is possible to easily attach your simulink file to the question. please do it. Will make life simpler for me!

댓글을 달려면 로그인하십시오.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 7월 21일
That is the correct modeling approach, but for all k>0 that system is unstable.
That is why you're getting the error messages, as the integrator state keeps getting bigger and bigger over time.
- Sebastian

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by