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

1 view (last 30 days)
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.

Answers (1)

Jeffrey Clark
Jeffrey Clark on 18 Apr 2022
It is possible that this low-level audio interface could work for you:


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

Community Treasure Hunt

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

Start Hunting!