ECE 203: Introduction to MATLAB Programming

 

 

Dr. Russell Hardie

Department of Electrical and Computer Engineering

KL341-F

Email: rhardie@udayton.edu

 

http://homepages.udayton.edu/~rhardie1

 

http://homepages.udayton.edu/~rhardie1/ECE203/ECE203.htm

 

 

 

Documents and Web Pages

 

1. Course Syllabus

 

Chapter 1: Starting With MATLAB

 

2. MATLAB Tutorials

3. Introduction to MATLAB: Using the Interactive Environment

4. Why Learn MATLAB?

5. Problem Solving Methodology

a.     Template for you to copy and use (word file).

b.     Packaging Design Example

c.      Example 1.5-1: Piston Motion

6. Script Files (.m files)

7. Input and Output (I/O) Commands

8. Summary of Important Workspace Commands

 

Chapters 2 and 3: Array and Matrix Operations

 

9. Defining and Indexing Arrays

a.     When to use {}, [], or () …

10.  Scalar and Array Operations

11.  Example 2.3-3: Maximum Power Transfer

12.  Area Optimization Problem

13.  Solving N Equations for N Unknowns

 

Chapter 4: Managing Data

 

 

 

Chapter 5: Two-Dimensional Plots

 

14.  XY Plotting

15.  Exponential and Power Function

16.  Circuit Frequency Response (Background .pdf, right mouse, save locally then open)

17.  Random Numbers and Histograms

 

Chapter 6: Programming with MATLAB

 

18.  Relational and Logical Operators

19.  The “if” statement

20.  Using “for” Loops

21.  Using “for” Loops to Solve Differential Equations Numerically

22.  Rocket Example

23.  More on Decision Making

 

Chapter 7: User Defined Functions

 

24. User-Defined Functions

25. More Function Examples

26. Function to Solve Projectile Problem

27. Function to Compute Full Projectile Trajectory

 

Chapter 8: Polynomials

 

28. Polynomials and MATLAB

29. More polynomials

30. Interpolation

 

Chapter 9: Numerical Analysis, Controls Toolbox and Simulink

 

31.  Analysis of LTI Systems (Controls Toolbox)

32.  Simulink

a.     RLC Circuit

b.     Motor Model (Open loop)

c.      Motor Controller (Closed loop)

33.  Video of a control system designed to balance a metal rod.  This was taken in KL351.  The control system was designed and implemented using MATLAB using Simulink.   See Dr. Raul Ordonez (KL344) for more information.

 

Chapter 10: Three-Dimensional Plots

 

34.  Surface Plots

 

 

Examples Combining Functions, Programming, and Plotting

 

35.  Trajectory Function Output Plotting

36.  Animated Plots

37.  Complex Exponential (M-file)

38.  Phasors (Background .pdf, right mouse, save locally then open)

a.     phasor (M-file)

b.     phasorZ (M-file)

c.      phasorZ2 (M-file)

 

Digital Signal Processing With MATLAB

 

39.  Digital Sound Processing

40.  A Look at Musical Instrument Signals

41.  Crossover Circuit Analysis with MATLAB

42.  Images

 

Miscellaneous Topics

 

43.  GUIs using guide

44.  Structures and Cell Arrays