Duplicated GUIDE-created GUI not properly updating handles

Hello,
I recently created a temporary version of a GUI created in guide by just simply saving it with another name in the same directory. I tried adding some additional functionality to it, but when I went to try it (it involves plotting data on two axes), I got the error "Reference to non-existent field 'axes1'. However, the GUI works just fine if I use the original file, and even if I create a fresh duplicate and do nothing to it, I get the same error.
Could there be some sort of conflict going on between the two files (either in the .fig or .m files) that could be causing this? A quick examination of the two showed no obvious conflicts, but I could be wrong.
Thanks.

Réponses (1)

Joseph Cheng
Joseph Cheng le 27 Fév 2015
Modifié(e) : Joseph Cheng le 27 Fév 2015
the original copy did you just saveas the mfile with a new name or did you saveas the .fig with a new name along with the mfile? and was your steps to create the copy the same for the fresh duplicate?
i would save as the .fig file to create the duplicate. that should create a new mfile with the same name with all the correct links.

Catégories

En savoir plus sur Printing and Saving dans Centre d'aide et File Exchange

Question posée :

le 27 Fév 2015

Modifié(e) :

le 27 Fév 2015

Community Treasure Hunt

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

Start Hunting!

Translated by