I am a begginer at Simulink.
Before running the simulink project I initialize this two variables:
T = [0 1];
A = [0 3 4 5];
This is the simulink process
And this is the matlab function
[y,To] = fcn(u,t)
y =[0 ; u+t];
To=[0 t+1];
As can be seen the variables A and T are obtained from the workspace, and the new calculated values are displayed and saved again on the workspace at the same variables. If I run the simulink project, the entire process is only executed once, but I am looking for the process to be on a loop, extracting, displaying and saving the variables A and T from the workspace like in real time until the simulation achieve the stop time.