How set set variables?

1 次查看(过去 30 天)
Hami Güclücan
Hami Güclücan 2020-5-28
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 个评论
Hami Güclücan
Hami Güclücan 2020-5-28
It’s a Number. Starting by 0 and everytime +1.
Ameer Hamza
Ameer Hamza 2020-5-28
You can use ramp block in Simulink to create a variable which increases by a fixed amount after each time-step.

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by