Borrar filtros
Borrar filtros

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

5 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 22 de Mayo de 2020
A counter block, multiplied by 0.1 or -0.1
  2 comentarios
Fazil Doruk Inanc
Fazil Doruk Inanc el 23 de Mayo de 2020
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 el 23 de Mayo de 2020
Editada: Fangjun Jiang el 24 de Mayo de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Simulink en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by