I should note all I had added was a simple radio button. The issue seems to be more an issue of saving a guide fig with the new version. It is a signicant appl which would take huge effort to upgrade to the new apps
how to resolve the 'dot indexing not supported for variables of this type' error?
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using Matalb 2019b. I have a guide figure that I when I save it I get the error as below. The guide figure has been used at lot but since upgrading I now get the error. I can edit and update the associated .m file with no probelms.
The lines of code in the guidefunc are as follows:
layout_ed = getappdata(fig, 'GUIDELayoutEditor');
frame = layout_ed.getFrame;
Any suggestions will be most appreciated
4 commentaires
Walter Roberson
le 10 Déc 2019
It needs a long debugging session. You have to trace the readSavedFigure call: the first parameter to it should be a non-empty layout editor object that would then get stored into the GUIDELayoutEditor property of the figure within the newGuideFig function near line 2368. You need to figure out whether a valid value is getting set there; if not then you would need to trace back to find out what is calling guidefunc with incorrect parameters or where the value is disappearing to. If a valid value is getting set, then it becomes a matter of tracking down why the value is disappearing.
Réponses (2)
per isakson
le 10 Déc 2019
Modifié(e) : per isakson
le 21 Déc 2019
"I would prefer to keep private" Two alternatives remain
- Make a Minimal working example and upload it here
- Start debugging. Set a breakpoint at the line 1224. Invoke your code. When the execution halts at 1224 inspect the values of fig and layout_ed. Share your findings here. See Walter's comment.
And see
1 commentaire
Olatunji Omisore
le 10 Juil 2020
Hi, I had similar problem and have to start the GUI from fresh each time. Kindly find my files for assisstnace and hope ypu can guide me to what is causing this problem.
Thanks.
JuanRDevelops
le 22 Jan 2021
Modifié(e) : Walter Roberson
le 22 Jan 2021
A solution I gathered from another question. This worked for me
For your GUI, you should have script.fig and script.m files
Rename script.m to something like script_.m
Work on your figure with GUIDE, and then save it. Rename your m-file to script.m again.
0 commentaires
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!