Hello,
I have the following line of code in app designer:
save(data_filepath, '-struct','app.data');
where "app.data" is a structure of different types of variables that I would like to save to "data_filepath".
When I try to execute this line I receive the following error:
Error using saveThe argument to -STRUCT must be the name of a scalar structure variable.
if I save app.data in a different structure (see following code), I no longer receive the previous error:
data_struct = app.data;save(data_filepath, '-struct','data_struct');
Can you please tell me why is the error given in the first case?
Thank you.
Best Answer