SciTech Publishing Home Page SciTech Publishing Home Page SciTech Publishing Home Page
Instructors: Request a Review Copy
Purchase a Copy
More Information About EM Fundamentals Student Resources Instructor Resources Submitted Projects and Applications

MATLAB Tutorial
by Dr. Randy Jost, Utah State University and David Padgett, North Carolina State University

This MATLAB Tutorial is designed for students with little or no exposure to MATLAB as they start a junior-level course in Electromagnetics. Each lesson builds upon preceding ones and introduces the student to additional capabilities of MATLAB. Click on the links to download a lesson and the accompanying files.

Table of Contents

Tutorial Introduction

Lesson 0: Introduction to MATLAB

  • Starting MATLAB
  • The Basic MATLAB User Interface
  • The MATLAB Help Function
  • Practice Using MATLAB-Plotting Functions
  • Examples Exercises
  • References

Lesson 1: Working with Numbers: Scalars and Vectors

  • Scalar Input and Operations
  • Using Built-in Functions
  • Vector Input and Operations
  • Another Plot Type-Quiver Plot
  • Examples and Exercises
  • References

Lesson 2: Working with Complex Numbers

  • Complex Numbers
  • Complex Number Input and Operations
  • Plotting Complex Numbers
  • Examples and Exercises
  • References

Lesson 3: MATLAB Programming I – M-Files

  • MATLAB M-Files
  • Structure of M-Files
  • Creating M-Files
  • Examples and Exercises
  • References

Lesson 4: Working with Matrices (draft)

  • Matrix Assignment and Input
  • Matrix Operators
  • Matrix Functions
  • Examples and Exercises
  • References

Lesson 5: MATLAB Output

  • Basic 2-D Plotting
  • Using the Plotting GUI
  • Basic 3-D Plotting
  • Examples and Exercises
  • References

Lesson 6: MATLAB Programming II – Program Flow & Control

  • Introduction to Program Flow Control
  • The IF Statement
  • Looping Statements-FOR Statement
  • Looping Statements-WHILE Statement
  • Vectorization
  • Examples and Exercises
  • References

Lesson 7: Modifying MATLAB (draft)

  • More on Built-in Functions
  • Some Special Functions in MATLAB
  • Basic Input and Output of Parameters
  • Examples and Exercises
  • References

Lesson 8: Working with Equations in MATLAB (draft)

  • Solving Equations and Sources of Error
  • Roots of Equations
  • Curve Fitting
  • Numerical Differentiation
  • Numerical Integration
  • Ordinary Differential Equations
  • Examples and Exercises
  • References

Lesson 9: Advanced MATLAB Input/Output (draft)

  • Types of MATLAB Output
  • Using the SAVE Command
  • Formatting Output Strings
  • Reading Data
  • Examples and Exercises
  • References

Lesson 10: The MATLAB Graphical User Interface (draft)

  • Graphical User Interface (GUI) Design Issues
  • GUI Creation Using GUIDE
  • Testing and Debugging of GUIs
  • Examples and Exercises
  • References

A MATLAB Project: Putting it all together

Appendix 1: Common Functions

References

The MATLAB Tutorial is still in development. We will update this page whenever chapters are added or changed. Please bookmark this page and check back frequently.