Struct contents reference from a non-struct array object
Afficher commentaires plus anciens
I get this error when I run a MATLAB script in the following lines
% error in line 66
global WormTrackerPrefs
set(findobj('Tag', 'MIN_WORM_AREA'), 'String', num2str(WormTrackerPrefs.MinWormArea)) % line 66
set(findobj('Tag', 'MAX_WORM_AREA'), 'String', num2str(WormTrackerPrefs.MaxWormArea))
set(findobj('Tag', 'MAX_DISTANCE'), 'String', num2str(WormTrackerPrefs.MaxDistance))
set(findobj('Tag', 'MAX_SIZE_CHANGE'), 'String', num2str(WormTrackerPrefs.SizeChangeThreshold))
set(findobj('Tag', 'MIN_TRACK_LENGTH'), 'String', num2str(WormTrackerPrefs.MinTrackLength))
% error in line 220
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
% error in line 42
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Any help would be much appreciated. Thanks
1 commentaire
"Any help would be much appreciated. Thanks"
Get rid of the global variable and pass data between workspaces using a more reliable method.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!