GUIDE Created In 2008a, error in 2007?

1 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2011-3-23
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

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by