How to create a block diagram that will increment a value?

조회 수: 2 (최근 30일)
Fazil Doruk Inanc
Fazil Doruk Inanc 2020년 5월 21일
편집: Fangjun Jiang 2020년 5월 24일
I am working on a cable robot simulation where I am required to increment a value which I'll use inside a matlab function block.
How can I form an incremental block diagram for the system that I have given below.
I want the k value to have increments in either plus 0.1 or negative 0.1

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 5월 22일
A counter block, multiplied by 0.1 or -0.1
  댓글 수: 2
Fazil Doruk Inanc
Fazil Doruk Inanc 2020년 5월 23일
It didn't work. I don' t know if it is of any use but I am using discrete solver with fixed-step of 0.0001.
Fangjun Jiang
Fangjun Jiang 2020년 5월 23일
편집: Fangjun Jiang 2020년 5월 24일
That means the counter is going to increase by 1 every 0.0001 second. How do you want the k value to increase, increase by 1 every 1 second? You can set the sample time of the counter block.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by