|
From: | Kai Torben Ohlhus |
Subject: | [Octave-bug-tracker] [bug #57212] Matlab incompatibility in getappdata() when opening GUIDE-built .fig files |
Date: | Tue, 12 Nov 2019 04:44:12 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 |
Update of bug #57212 (project octave): Status: None => Need Info _______________________________________________________ Follow-up Comment #5: I see. Indeed the example TestGUI.m is not useful. It boils down to the lack of knowledge, how does Matlab store appdata within a figure? To my knowledge this is not officially documented. But looking at your example TestGUI.fig, which is basically a mat-file only, it seems to be an easy fix: Where Matlab uses the figure struct field "ApplicationData", Octave currently uses "__appdata__" instead. A possible fix was to search for both fields to restore the appdata in a Matlab compatible way. Can you try the following experiment: edit getappdata replace each "__appdata__" by "ApplicationData", save and run your example code again. Does this at least resolve this particular error? Then I can make up a more general solution for Octave itself. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57212> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |