필터 지우기
필터 지우기

Nonlinear plant in simulink

조회 수: 3 (최근 30일)
Ömer Ergün
Ömer Ergün 2023년 4월 14일
댓글: Walter Roberson 2023년 4월 14일
I need to model a nonlinear equation in simulink as below:
I think I need to use s-function block, in order to do that I need to code that equation as a function in .m file?

답변 (1개)

Andy Bartlett
Andy Bartlett 2023년 4월 14일
The key is to model Y(k+1) to Y(k) using a unit delay.
The output of the unit delay is the input value from one time step early.
Input Output
Y(k+1) Y(k)
then just wire-up the math around that.
  댓글 수: 2
Ömer Ergün
Ömer Ergün 2023년 4월 14일
편집: Ömer Ergün 2023년 4월 14일
Thanks for the tip, and where should I wire-up the math equation, in matlab fcn block or in mscript or can I just made a model with fundamental simulink blocks ...?
For example I generated this model, is it true?
(u is the signal comes from PID and the y is the output feedback)
Walter Roberson
Walter Roberson 2023년 4월 14일
There is no point having the 1/z in two different places. You should have it only once and split back the signal after the 1/z
I am not sure that you should be mux'ing the two values; I think you should probably be having the u(i) and 1/z flowing directly into the mathematics block as separate inputs.

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

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by