GUIDE Created In 2008a, error in 2007?

2 vues (au cours des 30 derniers jours)
Adam Cutbill
Adam Cutbill le 23 Mar 2011
Hi,
I create a GUI using GUIDE last summer using 2009 and 2008. I just noticed it won't work in 2007 which I didn't think to test. Now, we would like to use it in a lab that has only 2007. Is there any way to re-save it to make it backward compatible? Or is GUIDE 2007 fundamentally different than in newer version?
The Error I get is :
??? Error using ==> strtrim Input should be a string or a cell array of strings.
Error in ==> gui_mainfcn at 226 guidemfile('restoreToolbarToolPredefinedCallback',gui_hFigure);
Error in ==> optip at 57 gui_mainfcn(gui_State, varargin{:});
Thanks a lot,
Adam

Réponses (1)

Walter Roberson
Walter Roberson le 23 Mar 2011
That usage of strtrim is the same in the latest versions, suggesting that the real issue occurs at least one step back.
GUIDE has never promised backwards compatibility, and the release notes seldom seem to mention compatibility limitations on GUIDE or work-arounds for them.
Sorry, I don't know if re-saving an existing GUIDE gui would help. Possibly, though, we might be able to suggest how that bit of code might be changed, if you can show us the code near the error in restoreToolbarToolPredefinedCallback

Catégories

En savoir plus sur Migrate GUIDE Apps 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!

Translated by