UI items placed on layout editor not saving in m file

I moved both the .fig and .m files to another directory... has this broken their link? Is there a way to fix?

Réponses (1)

Image Analyst
Image Analyst le 5 Nov 2013

0 votes

No. Just open GUIDE and then File->Open the .fig file and everything will be fine.

4 commentaires

Stevie's "Answer" moved here:
I decided to add a pushbutton to the layout editor and its callback was saved to the m file as it should be. But a callback for the radio button I have added will not save in the m file.
Any ideas? I can use a pushbutton, but I would like to understand why the radio button is not registering.
Did you right-click the button and view the callback, and then click the save button in GUIDE? Otherwise, attach your m-file and .fig file so I can verify that the radio button will not create a callback when you (try to) view it.
I decided to set up the pushbutton I had placed and then use property editor to change it to a radio button and it now works fine.
Thanks for your time.
Please Accept the Answer so everyone will know you're done with it. Thanks.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by