In simulink I wish to perform. x(k)= x(0) + 2; I know how to initialize variables Using MATLAB command prompt, via x=0. But I don't know how to set up x(k). After the first time iteration has past I'll get:
x(k)= x(k-1) + 2.
I want to be able to do this in simulink, I can do it in MATLAB, but not simulink. Please help.
Best,
Shawn Daniel

1 comentario

Azzi Abdelmalek
Azzi Abdelmalek el 7 de Ag. de 2015
x(k)= x(0) + 2 ? this is not what you want. What you want is x(k)=x(k-1)+2 with x(0)=0

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 7 de Ag. de 2015
Editada: Azzi Abdelmalek el 7 de Ag. de 2015

0 votos

set the initial value of x in the unit delay block

1 comentario

Shawn Daniel
Shawn Daniel el 7 de Ag. de 2015
Editada: Shawn Daniel el 7 de Ag. de 2015
Awesome and thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 7 de Ag. de 2015

Editada:

el 7 de Ag. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by