I essentially need to do 'x = x + a*b' operation at every time-step in my simulation. The value of b is changing throughout the simulation.
Please suggest what blocks I should use; if possible a diagram too. I think I need a block which can act as a source but also have an option to be updated. Or any other way to carry out the above task would suffice.
I have done this in Matlab scripting and it was very easy there, but I need a Simulink model solution.