MAE 8

Matlab Programming

Class/Laboratory Schedule: Three hours of lecture, 1 hours of lab, eight hours outside preparation. 12 hours/week total

Course Coordinator: Vlado Lubarda

Textbook: Stormy Attaway, Matlab - A Practical Introduction to Programming and Problem Solving, 2nd edition, BH, 2011.

Catalog Description: MAE 8 Matlab Programming (4): Introduction to Matlab software. Arithmetic operations, scalar variables, vectors and matrices. Matlab scripts (M-files), input and output, simple plots. Selection and loop statements. Vectorized codes, operations with vectors and matrices. Matlab programs. User-defined functions. String manipulations. Advanced plotting techniques. Application to simple numerical analysis problems. Programming ethics.

Prerequisites: None.

Prerequisites by topics: Vectors and dot products.

n Required Course

ÿ Technical Elective Course

ÿ Other: ______________________________________________

Performance Criteria:

Objective 1

Students successfully develop programs by using Matlab environment

Objective 2

Students develop programs in homework and quizzes to compute inner products of one-dimensional arrays and multiplication of matrices stored in two-dimensional arrays

Objective 3

Students develop programs with vectorized codes and various functions

Objective 4

Students process various input data files, analyze them, make output files and advance plots

Objective 5

Students locate available resources on engineering ethics by using Google

Course Objectives:

(Numbers in parentheses refer to the Program Outcome of Mechanical and Aerospace Engineering Programs.)

Objective 1: To teach students basic programming skills under the Matlab environment (11k)

Objective 2: To teach students to compute inner array product and matrix multiplication (5e, 11k)

Objective 3: To teach students vectorized programming skills (11k)

Objective 4: To teach students processing data files and make advanced 2D and 3D plots (1a, 11k)

Objective 5: To teach students locating resources on engineering ethics (5e)

Course Topics:

1. Introduction to Matlab software

2. Scalars, vectors, matrices

3. Matlab scipts (M-files)

4. Input and output, data files

5. Selection and loop statements

6. Vectorized codes

7. User-defined functions

8. Advanced plotting techniques

9. Introduction to simple numerical analysis

10. Programming ethics

Prepared by: Vlado A. Lubarda, January 2013