How set set variables?

조회 수: 1 (최근 30일)
Hami Güclücan
Hami Güclücan 2020년 5월 28일
답변: Nishant Gupta 2020년 5월 30일
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