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?

Answers (1)

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

4 Comments

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.

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Asked:

on 5 Nov 2013

Commented:

on 6 Nov 2013

Community Treasure Hunt

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

Start Hunting!