Effacer les filtres
Effacer les filtres

how to give initial condition to simulink function variables

12 vues (au cours des 30 derniers jours)
John
John le 2 Août 2023
Modifié(e) : Fangjun Jiang le 29 Août 2023
i have tried initial condition block and memory block but they are not working. Does simulink fucntion takes 0 as default initial condition or what? do i have to make changes in code or there is some block for this? please help

Réponses (2)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 29 Août 2023
A general answer is Yes. But what function you are talking about - could you please mention here? MATLAB function block or MATLAB system, S-function or something else in Simulink environment?

Fangjun Jiang
Fangjun Jiang le 29 Août 2023
Modifié(e) : Fangjun Jiang le 29 Août 2023
A Simulink Function is like a Simulink model. Depending on the blocks that are used inside the Simulink Function, some blocks have initial value parameters, others don't.
You can use the "Initial Condition" block to set the initial condition of the signal at its input port.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by