MATLAB: Simulink and doing x(k)= x(0) + 2

initialize variablessimulink

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

Best Answer

set the initial value of x in the unit delay block