gui_mainfcn, why im getting gui_mainfcn error

7 views (last 30 days)
Savi Gaur
Savi Gaur on 7 Mar 2019
Commented: Adam on 7 Mar 2019
other execution error also im getting..
Error using writejpg>set_jpeg_props (line 183)
UINT16 image data requires bitdepth specifically set to either 12 or 16.
Error in writejpg (line 49)
props = set_jpeg_props(data,varargin{:});
Error in gui_mainfcn (line 95)
feval(varargin{:});
  1 Comment
Adam
Adam on 7 Mar 2019
The debugger is useful for things like this, especially the stop on errors/stop on warnings options.
gui_mainfcn
is something of a red-herring as a guide to your error as it is just the entry point for a GUIDE GUI so any problems with creation of the GUI (including code in the OpeningFcn) will land you with an error there as far as I remember.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 7 Mar 2019

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!