Insert a function in Simulink

3 visualizaciones (últimos 30 días)
Guilherme Lopes de Campos
Guilherme Lopes de Campos el 6 de Jul. de 2020
Comentada: Guilherme Lopes de Campos el 7 de Jul. de 2020
Hi Community!!
I am modeling a differential equation in simulink, the set of block it is correctly, only need a help to consider a coefficient.
In my set of equation, there is a constant that depend o time, I did a curve fitting in MATLAB resulting the better adjust was a rational function (coefficient in function time),
Such as (C(t) = a/(b*t+c)),
I would like to ask, kindly, a way to insert this function to modify gain in my simulation.
Thank you very much for opportunity,
Hugs!

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 6 de Jul. de 2020
The Clock block gives you time t for simulation. The rest is to use multiplication, sum and Devide.
  1 comentario
Guilherme Lopes de Campos
Guilherme Lopes de Campos el 7 de Jul. de 2020
Thank you very much Fangjun,
I am very grateful!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by