I am trying to create an appdesigner. Firstly, one can select the .mat file from computer by pushing a button. The selected Figure is shown on UIAxes. Secondly, I want to use data of the selected .mat file when the second button is pushed.
I did the first part, but I could not load the .mat file in the second part of the code.
I wrote the following in the first part:
function SquareButtonPushed(app, event)
M = squareImage;
For the second part:
function BackProjectionButtonPushed(app, event)
M = app.Ax1;
Error using load
Unable to read file 'app.Ax1'. No such file or directory.
How can I load the data of app.Ax1 to M?