How set set variables?

1 Ansicht (letzte 30 Tage)
Hami Güclücan
Hami Güclücan am 28 Mai 2020
Beantwortet: Nishant Gupta am 30 Mai 2020
The question is very simple but somehow I cannot solve it. I have a system where I calculate 1 + x each time, whereby the x always takes on a new value or always increases by 1. But I don't know how I have to enter the x in simulink or how I can define this variable in Simulink
  4 Kommentare
Hami Güclücan
Hami Güclücan am 28 Mai 2020
It’s a Number. Starting by 0 and everytime +1.
Ameer Hamza
Ameer Hamza am 28 Mai 2020
You can use ramp block in Simulink to create a variable which increases by a fixed amount after each time-step.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Nishant Gupta
Nishant Gupta am 30 Mai 2020
You can use Stair Generator block to do that. Refer to the attached model.

Kategorien

Mehr zu Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by