Also, when calling app. variables, there is no lag. In example, in the loop:
for n = 1:100
var_intern = [var_intern, string(n)];
% Proba: crida a variables
var_Josep = app.video_obj_v;
dades_Josep = app.dades_app;
atura_Josep = app.aturar_rep;
video_obje_proba = app.video_obj_v;
end
The result:

But, when is changing the 'app.' variables, it makes delay:
for n = 1:100
var_intern = [var_intern, string(n)];
% Proba: crida a variables
var_Josep = app.video_obj_v;
app.dades_app = rand(1);
app.aturar_rep = rand(1);
end
As example:

Then the best option is not use the app. as changing variables, but yes as calling non-modificable ones.
When I have no idea about app. variables, I defined all the variables in internal spaces of the app, for example in Labels and TextAreas:

Other option is define the variables in .txt files, which are a fast a reliable way.
Cheers
