doubts regarding GUI. can some one explain me the code thats generated in each GUI? i hav given the code in the body.

function varargout = compression(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @compression_OpeningFcn, ...
'gui_OutputFcn', @compression_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end

3 Comments

Pradeep - what doubts do you have? The above code is typical for GUIs created using GUIDE and can be safely ignored. The important function is gui_mainfcn which (according to the documentation) handles GUI creation, layout, and callback dispatch.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Objects in Help Center and File Exchange

Tags

Asked:

on 14 Mar 2015

Community Treasure Hunt

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

Start Hunting!