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{:});

 Accepted Answer

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');

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!