You have to update the edit field value from the callback of the load button.
%% function for the load button.
function LOADButtonPushed(app, event)
[file,~] = uigetfile(['*.mat'],'Load File','MultiSelect', 'off');
if isequal(file,0)
disp('Nothing Selected')
else
try
app.Data = load(file);
Timestep= app.Data.Profile(1,:);
Power = app.Data.Profile(2,:);
plot(app.UIAxes,Timestep,Power)
app.PROFILENAMEEditField.Value = file;% Set the file name here
catch
errordlg(['There was a problem loading the .mat',' file'],'Load Error!');
return;
disp(['User selected ',file]);
end
end
%% function for the EditField