Insert a function in Simulink

조회 수: 3 (최근 30일)
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2020년 7월 6일
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!

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 7월 6일
The Clock block gives you time t for simulation. The rest is to use multiplication, sum and Devide.
  댓글 수: 1
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2020년 7월 7일
Thank you very much Fangjun,
I am very grateful!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by