how to create a signal with parameters that can be changed while the signal is running?

Hello everyone,
I have this problem. I need to create a sine wave and be able to change it's magnitude while the signal is running.
I tried generating a sine wave in background continuously, but i can only change the magnitde if i preload the data again and start another signal.
Please help if you know a way.
regards
Ali

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Asked:

on 5 Apr 2022

Answered:

on 18 Apr 2022

Community Treasure Hunt

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

Start Hunting!