I want to create an excel file with "named as the input", and pass on variables into it from the app designer.
Aim is to create a file named "Test.xlsx" in the folder "Excel_Folder" and write variables "variable1", and "variable2" into the excel file after pressing the "Export data" pushbutton.
I have tried the following:
function NameEditFieldValueChanged(app, event)
value = app.NameEditField.Value;
function ExportdataButtonPushed(app, event)
folder = app.Excel_Folder;
filename = app.NameEditField.Value;
writetable(fullfile(folder, filename), app.variable1, app.variable2);
The above is neither creating a file in the folder nor displaying any error.