I am fairly new to App Designer, and am trying to write a function which takes in data from a specified excel file. The excel file name is specified by the user in an "edit text" object. The data is read within a button callback, shown below:
function ReadDataButtonPushed(app, event) dataname = app.DataFileEditField.Value; data = readtable(dataname) app.DataReadLamp.Color = [0,1,0]; [CylPress, IntakePress, headers, Colnum] = EngineDataClean(data); end
However, I need the outputs of the EngineDataClean function to be available to other callbacks. Due to the size of the excel files being read, its not feasible to read the data for each subsequent callback. Is there a way to make these function outputs global?
Best Answer