Why do I receive “Too many arguments” error when trying to export data from an app designer table as a .txt file, to a user defined file location?
I am attempting to write data from an app designer table, to a .txt file, which can then be saved to a user-specified file location at the touch of a button. It should be noted that the table is quite large, with a length of 16,420 values, so maybe that is causing an issue? Not sure. Here is what I have currently:
% Button pushed function: ExporttotxtButton
function ExporttotxtButtonPushed(app, event)
t1=writetable(app.UITable.Data,’Road Profile_fl.txt’);
[file,path] = uiputfile(‘Road Profile_fl.txt’);
save(fullfile(path, file), ‘t1′,’-ascii’)
end
The following errors are returned:
Any advice on how to fix this, or even a different strategy to accomplish the same goal would be much appreciated. Thank you.I am attempting to write data from an app designer table, to a .txt file, which can then be saved to a user-specified file location at the touch of a button. It should be noted that the table is quite large, with a length of 16,420 values, so maybe that is causing an issue? Not sure. Here is what I have currently:
% Button pushed function: ExporttotxtButton
function ExporttotxtButtonPushed(app, event)
t1=writetable(app.UITable.Data,’Road Profile_fl.txt’);
[file,path] = uiputfile(‘Road Profile_fl.txt’);
save(fullfile(path, file), ‘t1′,’-ascii’)
end
The following errors are returned:
Any advice on how to fix this, or even a different strategy to accomplish the same goal would be much appreciated. Thank you. I am attempting to write data from an app designer table, to a .txt file, which can then be saved to a user-specified file location at the touch of a button. It should be noted that the table is quite large, with a length of 16,420 values, so maybe that is causing an issue? Not sure. Here is what I have currently:
% Button pushed function: ExporttotxtButton
function ExporttotxtButtonPushed(app, event)
t1=writetable(app.UITable.Data,’Road Profile_fl.txt’);
[file,path] = uiputfile(‘Road Profile_fl.txt’);
save(fullfile(path, file), ‘t1′,’-ascii’)
end
The following errors are returned:
Any advice on how to fix this, or even a different strategy to accomplish the same goal would be much appreciated. Thank you. appdesigner, export, txt MATLAB Answers — New Questions