how create a file with format .fig to use in GUI

조회 수: 4(최근 30일)
iman karimipour
iman karimipour 2021년 1월 13일
댓글: Walter Roberson 2021년 2월 8일
Hi everyone?
How I can create following figure to use in GUI.
I want to use a source code that its gui figure is attached.
How I can convert this jpeg format figure to format matlab figure, because its format must be (.fig)
Thanks
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
image is attached below.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::This is the program function::
function varargout = GUI_Interface(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @GUI_Interface_OpeningFcn, ...
'gui_OutputFcn', @GUI_Interface_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
  댓글 수: 1
Rik
Rik 2021년 1월 13일
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.
You really should not use GUIDE for something more complex than a +-*/ calculator.

댓글을 달려면 로그인하십시오.

답변(1개)

Sourabh Kondapaka
Sourabh Kondapaka 2021년 2월 8일
@Rik is right in suggesting to avoid GUIDE.
The GUIDE environment will be removed in a future release. After GUIDE is removed, existing GUIDE apps will continue to run in MATLAB® but they will not be editable in GUIDE.
Please checkout App Designer to create Desktop and Web Apps in Matlab.
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 2월 8일
But in the meantime, App Designer has earned a reputation for being slow and for missing significant features. It is improving release after release, and has some interesting features, but it is not clear that it is time to switch yet.

댓글을 달려면 로그인하십시오.

범주

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by