Using appdesigner I have developed a GUI that runs pretty good. I now want to take some variables that are defined in the app code and use them in a script I am developing. How do I do this? This is a function that is in the app designer and I want to use "NewInterval" in my script.
methods (Access = public)
function WhatIntervalSelected (app, ~)
if app.Interval1Button.Value == true;
elseif app.Interval2Button.Value == true
NewInterval =2 ;
elseif app.Interval3Button.Value == true;
elseif app.Interval4Button.Value == true
elseif app.Interval5Button.Value == true
NewInterval = 6;
How do I get NewInterval into my MATLAB Script?