MATLAB Answers

Where does the getappdata() function save its data?

2 views (last 30 days)
Christopher Guzman
Christopher Guzman on 18 Oct 2019
Commented: Walter Roberson on 18 Oct 2019
I see it does not show up in the workspace or make a file in the path working directory/current folder

  0 Comments

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 18 Oct 2019
getappdata returns its output as regular output, same as a+b returns its output. You would want to store the output or use it in an expression or display it.

  0 Comments

Sign in to comment.


Steven Lord
Steven Lord on 18 Oct 2019
Are you asking where (in memory, on disk, etc.) saveappdata stores the data that you retrieve with getappdata, so you can retrieve or manipulate it independently of getappdata? I don't think we document exactly where that data is stored so I recommend using the documented way to access that data, that being getappdata. If you have some use case where getappdata isn't doing what you want or need please describe it and maybe that can turn into an enhancement request for getappdata and/or setappdata.

  1 Comment

Walter Roberson
Walter Roberson on 18 Oct 2019
Oh, that. The data is stored in a property named ApplicationData as a struct with field name the same as the property name.

Sign in to comment.

Sign in to answer this question.