Warning: Editor is not serializable
Show older comments
I run the following code to get current state of Editor
X = matlab.desktop.editor.getAll;
Then I save the variable X.
I get following warning
Warning: com.mathworks.mde.editor.MatlabEditor@73877e19 is not serializable
and X variable is saved with properties having no values.
How can I save X variable with values.
Accepted Answer
More Answers (1)
Walter Roberson
on 4 Aug 2019
0 votes
You cannot. The editor state refers to a number of dynamic Java objects, some of which have no ability to save and restore. For example some of them refer to Windows HWND which are transient data structures with internal resource pointers.
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!