How do you output a signal that changes with time to a constant value in Simulink?

Hi
I have an output from function block that changes with time. I want to save it as a constant "C" and than use it in a gain block. How can I do this?

 Accepted Answer

You can use a product block

3 Comments

The gain block is in a loop and if I use product wouldn't that keep increasing it with time. I want it to calculate the gain every time.
If you want to change the gain value depending on your output function, then don't use a gain block just use a product block
Thanks I just used a function block instead so I can do more with it.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!