MATLAB: Simulink block for initialization

initializationsimulinkswitch case

In my simulink simulation, initial value of a particular constant input is to be given by me. Later on the value is changed by the feedback signal.
The feedback signal is also constant(1×1) but changes with time. My question is is there a block for this particular condition.?

Best Answer

As per my understanding, you want to use one constant value while initializing and afterwards the feedback value.
So, actually there are multiple ways. Below are some:
1. You can use unit delay block for feedback and use it’s initial condition property to set initial value.
2. You can also use triggered or enabled subsystem. You can set initial value for it’s output port. And then you can use any value as it’s input afterward.