How do I set an initial value for an input in a MATLAB Function Block in Simulink?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vinayak Dan
le 21 Fév 2020
Réponse apportée : Fangjun Jiang
le 21 Fév 2020
This is the function description.
function Y = fcn(U)
Y=U*2;
I want to set intial value for U at the start of simulation. I am unable to set initial value in the function block data editor.
Below is the simulink model:

0 commentaires
Réponse acceptée
Fangjun Jiang
le 21 Fév 2020
The initial value of "U" is determined by the 1/z block. Set the initial value there.
0 commentaires
Plus de réponses (0)
Voir également
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!