generate a ramp signal based on an external input

11 Ansichten (letzte 30 Tage)
Juan Nunez
Juan Nunez am 12 Mai 2016
Beantwortet: Amruta am 3 Nov. 2025 um 10:49
Hello,
How can I generate a ramp signal based on an external input in matlab. For example, when the external input K changes its value from 0 to 1 then the ramp signal is generated. If this is implemented in simulink, is it required to use the clock block?
Thanks.
  2 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 12 Mai 2016
And if K changes from 1 to 0?
Juan Nunez
Juan Nunez am 12 Mai 2016
K always changes from 0 to 1. Once the ramp period is completed the final value of the ramp is kept during the rest of the simulation.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 13 Mai 2016
You can use a clock block, and multiply it by your K value, using a product block, then multiply the output of the product block by a constant to specify the slope of your rampe

Weitere Antworten (1)

Amruta
Amruta am 3 Nov. 2025 um 10:49
Hi
how to implement ramp signal in simulink which will increase upto target speed in desired time

Community Treasure Hunt

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

Start Hunting!

Translated by