How set set variables?

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 Commenti

Hami Güclücan
Hami Güclücan il 28 Mag 2020
I know the question is definitely easy to solve, but a simple explanation would be very nice. Thank you in advance
Ameer Hamza
Ameer Hamza il 28 Mag 2020
How is x calculated?
Hami Güclücan
Hami Güclücan il 28 Mag 2020
It’s a Number. Starting by 0 and everytime +1.
Ameer Hamza
Ameer Hamza il 28 Mag 2020
You can use ramp block in Simulink to create a variable which increases by a fixed amount after each time-step.

Accedi per commentare.

Risposte (1)

Nishant Gupta
Nishant Gupta il 30 Mag 2020

0 voti

You can use Stair Generator block to do that. Refer to the attached model.

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Richiesto:

il 28 Mag 2020

Risposto:

il 30 Mag 2020

Community Treasure Hunt

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

Start Hunting!

Translated by