Question

In matlab: Design a GUI for any system. - You must accept at least 3 inputs...

In matlab:
Design a GUI for any system.

- You must accept at least 3 inputs from the user and have 2 Push/Radio buttons in your GUI.

*as simplified as possible please.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code

function varargout = GUI(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @GUI_OpeningFcn, ...
'gui_OutputFcn', @GUI_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

function GUI_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;

guidata(hObject, handles);

function varargout = GUI_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;


function radiobutton1_Callback(hObject, eventdata, handles)

function radiobutton2_Callback(hObject, eventdata, handles)

function edit2_Callback(hObject, eventdata, handles)

function edit2_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit3_Callback(hObject, eventdata, handles)

function edit3_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

function edit4_Callback(hObject, eventdata, handles)

function edit4_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end

Output

GUI - X Input 1 Input 2 Input 3 O Radio Button 1 O Radio Button 2

Add a comment
Know the answer?
Add Answer to:
In matlab: Design a GUI for any system. - You must accept at least 3 inputs...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Could you code this question on Matlab? :) Question: Design a GUI based application, named Calculator, which perform basic arithmetic operations ie., add, subtract, multiply, and divide Your design m...

    Could you code this question on Matlab? :) Question: Design a GUI based application, named Calculator, which perform basic arithmetic operations ie., add, subtract, multiply, and divide Your design must have 1) Two separate input fields for reading the two operands (let's say a and b) 2) 4 Four button (labeled as +, -, *, /) to let the user select an operation. 3) An output field for displaying the result Following table shows operations performed on pushing each of...

  • MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100...

    MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100 pts) This week you will repeat the second problem from Week 8 (the problem is restated below for your convenience) but you will add a GUI (without using guide) for the user to control the execution of the program. Your program should do the following: Create a figure that contains a plotting area and user interface controls Allow the user to input the initial...

  • Matlab Questions (please show what code I need, including any comments): You are asked to design...

    Matlab Questions (please show what code I need, including any comments): You are asked to design a water storage tank with a capacity of 1,000 liters. The tank will be fabricated from stainless steel (rolled sheet), which cost $100/ sq. m. You are asked to consider three possible designs for the tank: Option 1 – a cube; Option 2 – a cylinder; Option 3 – a sphere. Calculate the cost of each of these designs and report the least expensive...

  • Hello I just need the code for this GUI thanks Also computer screenshot of the code...

    Hello I just need the code for this GUI thanks Also computer screenshot of the code will be helpful Attached is an incomplete Python template file. button_multi_colour_changer_Q.py Download this file and complete it to solve the following problem. Consider the GUI below (4 Labels, 4 colour Buttons and a "RESET" Button) which has been produced with a Python program using the Tkinter library. MULTI Button Colour - a X MULTI Button Colour - O X Violet Purple Blue | Green...

  • This project is designed to help you practice Graphical User Interfaces (GUI) using Java. Design and...

    This project is designed to help you practice Graphical User Interfaces (GUI) using Java. Design and write a class needed to simulate a pizza shop ordering system GUI. Your ordering system should allow the user to select whether the order is to be delivered or picked up, the items ordered from the menu and the name of the person making the order. When the user presses the place order button, the display should show the delivery status, the items ordered,...

  • (In Java) you will be creating a GUI for your calculator that evaluates the postfix expression. I...

    (In Java) you will be creating a GUI for your calculator that evaluates the postfix expression. I have already created the postfix class that converts the expression from infix to postfix. Here's the postFix class and its stack class (https://paste.ofcode.org/bkwPyCMEBASXQL4pR2ym43) ---> PostFix class (https://paste.ofcode.org/WsEHHugXB38aziWRrp829n)--------> Stack class Your calculator should have: Text field for the postfix expression Text field for the result Two buttons: Evaluate and Clear You can start with the code written below and improvise to work with this...

  • Can someone help me with the GUI c# card game please?

    You are required to design a simple GUI game: guess a card. At the beginning, a form shows the back of a card with two radio buttons and one button. Moreover, your program randomly generates an integer between 1 (it means the card is Spade Ace) and 2 (it means the card is Heart Ace). Then the user selects a radio button and then clicks the button“Guess” to guess (see Figure 1). After clicking the button, the form shows the...

  • In Java please, thank you! Design a GUI application as shown below and perform the following...

    In Java please, thank you! Design a GUI application as shown below and perform the following tasks: The text field is for data file name, the file extension must be.txt, otherwise, prompt user to provide a valid file name. Load the content of the data file and display on the textarea. 1. 2. Loading Files File Name: data.tt Load File

  • Q) Design a new Lottery CPU-scheduler. It must include details of any modifications you want to...

    Q) Design a new Lottery CPU-scheduler. It must include details of any modifications you want to make to existing functions, methods, algorithms, formulae, and data structures. and where each addition will take place in. It must also include the same detailed description of any additional code. In the design document you should include how your algorithm distinguishes CPU-bound from I/O-bound, and user from system processes, how you designed it to prevent starvation, and how you think it will improve the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT