how to give initial condition to simulink function variables
4 views (last 30 days)
Sulaymon Eshkabilov on 29 Aug 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 on 29 Aug 2023
Edited: Fangjun Jiang on 29 Aug 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.