Nonlinear plant in simulink
Afficher commentaires plus anciens
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?
Réponses (1)
Andy Bartlett
le 14 Avr 2023
0 votes
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 commentaires
Ömer Ergün
le 14 Avr 2023
Modifié(e) : Ömer Ergün
le 14 Avr 2023
Walter Roberson
le 14 Avr 2023
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.
Catégories
En savoir plus sur Interactive and Graphical Tuning dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
