I think I have your problem.
The easiest way is to create a new property (red button in the upper left corner in the editor) and use it as a variable in the entire code.
Be careful to use app.variablenameto refer to a variable.
, , , , :
set:
properties (Access = private)
varone %first variable
vartwo % second variable
...
end
Exchange:
varone = app.varone; %(now you can use varone instead of app.varone)
:
app.varone = varone;