MATLAB: I would like to change gain every step / to be a function of time for the TF, is this possible somehow

functiongainkMATLABsimulinkstair generatorsteptftransfer

In Simulink I have the following system
stair gen > gain > TF > scope can the gain change based on time or step change?
Thanks in advance! Best regards

Best Answer

Instead of a Gain block, use a Product block... then, pass in the "gain", which is now one of the 2 inputs of the Product block, as a time-varying signal.
- Sebastian
Related Question