πŸ–₯️ MATLAB GUI Mini-Course

Welcome! This course walks you through creating GUIs in MATLAB step by step.

πŸ“˜ Lesson 1: Creating a Window + Button

Output here...
πŸ“ A figure is your GUI window. uicontrol creates interactive elements.

πŸ“˜ Lesson 2: Textboxes & Input

Output here...
⚑ Use get() to grab values from user input fields.

πŸ“˜ Lesson 3: Multiple Controls & Layout

Output here...
πŸ‘‹ This shows multiple controls working together: labels, textboxes, and a button.

πŸ“˜ Lesson 4: Callback Functions & Logic

Output here...
βœ… Checkboxes return 1 if selected, 0 if not.

πŸ“˜ How to Create a GUI (Using MATLAB GUI Editor)

MATLAB provides two main ways to design GUIs without writing all the code manually:

πŸ› οΈ Using GUIDE

  1. Type guide in the MATLAB Command Window.
  2. Select a blank GUI (or template).
  3. Drag & drop controls (buttons, sliders, text boxes) from the toolbox onto your window.
  4. Save the GUI β€” MATLAB will create two files:
  5. Double-click a control (like a button) to add custom code in its Callback function.
⚑ GUIDE is being phased out, but it’s still great for learning because it shows the link between GUI layout and MATLAB code.

πŸ› οΈ Using App Designer

  1. Type appdesigner in the MATLAB Command Window.
  2. Drag & drop UI components from the Component Library (buttons, sliders, switches, etc.).
  3. Adjust properties in the right-hand panel (text, size, colors, callbacks).
  4. Add interactivity by writing code in the Code View.
  5. Save your app as a .mlapp file β€” this is a self-contained GUI app.
πŸš€ App Designer is the future. It uses an object-oriented approach and integrates better with modern MATLAB apps.

πŸ“˜ Lesson 5: Mini Project - Calculator GUI

Output here...
πŸ”’ This mini project shows how to combine multiple inputs, callbacks, and logic into a functional GUI.