How do I set an initial value for an input in a MATLAB Function Block in Simulink?
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vinayak Dan
il 21 Feb 2020
Risposto: Fangjun Jiang
il 21 Feb 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/273037/image.png)
0 Commenti
Risposta accettata
Fangjun Jiang
il 21 Feb 2020
The initial value of "U" is determined by the 1/z block. Set the initial value there.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!