Struct contents reference from a non-struct array object. Error in pp>pp_OpeningFcn (line 61) a.arduino ('COM5','uno'); Error in gui_mainfcn (line 220) feval(gui_​State.gui_​OpeningFcn​, gui_hFigure, [], guidata(gui_hFigure), varargin{:}); Error in

how to solve this error ?
Struct contents reference from a non-struct array object.
Error in pp>pp_OpeningFcn (line 61)
a.arduino ('COM5','uno');
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in pp (line 42)
gui_mainfcn(gui_State, varargin{:});

 Réponse acceptée

You have
a.arduino ('COM5','uno')
but whatever a is, it is not a structure that has a field or method named arduino
I suspect you might want
a = arduino ('COM5','uno');

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 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!

Translated by