LECTURES, HANDOUTS AND ASSIGNMENTS  Fall 2009

EML 3035

Programming Concepts for Mechanical Engineers

EML 3035 Home Page

Archived lectures from Last Year


Week 1 August 24, 28

Lecture Notes

Handouts of First Day of Class

     Syllabus

     Words of wisdom from your peers

     Affidavit Sheet

     Sample Attendance Memo

Sample HW of Brinell Hardness

      Homework Assignment Sheet

      Mfile

      Print out of the output

Excellent Introductory Tutorial from MATLAB

Another good tutorial from Duke University

Class Notes - Week 1

Helpful Videos

Getting Started with MATLAB (5:00) 

Working in The Development Environment (4:13) 

Writing a MATLAB Program (5:36) 

Assignment

Reading Assignment: Pages 1-86.  Skip Section 2.4 pages 35-37.

Assigned HW: Monthly Payment on a Car.  Problem#1

Other HW problems: All problems given on pages 1-86. Skip #2.1,2.3,2.4 on pg 79


Week 2 August 31, Sept 4

Lecture Notes

Partial Lecture Week 2 (rest of it is in the blogs below)

How do I differentiate in MATLAB?

How do I integrate a continuous function in MATLAB?

How do I solve a nonlinear equation in MATLAB?

How do I solve a nonlinear equation that needs to be setup in MATLAB?

How do I solve simultaneous linear equations on matrix form in MATLAB?

How do I solve simultaneous linear equations on equation form in MATLAB?

How do I do polynomial interpolation in MATLAB?

How do I do polynomial regression in MATLAB?

How do I solve an initial value ordinary differential equation in MATLAB?

Assignment

Reading Assignment: Same as last week Pgs 1-86 and the above blogs

Assigned Graded HW: None but Cut the potato


Week 3 Sept 11, 14

Lecture Notes

Gutter Problem (Handout   Mfile)

Water Freezing (Handout   Mfile)

Try these problems in class.

Assignment

Reading Assignment: Same as last week: Pgs 1-86 plus the class notes of three weeks

Assigned Graded HW: Problem#2


Week 4 Sept 18, 21

Competency Test#1


 

Week 5 Sept 25, 28

 

Lecture Notes

Handout of flowcharts

BMI Problem  DOC  MFile

 

Assignment

Reading Assignment: Pages 87-119;138-148.  Skip && and || operators and corresponding explanation and problems.  Other HW problems: All problems given on pages 85-117;139-146. Skip problems with && and ||, and #3.12 to 3.17.

 

Assigned Graded HW: Problem#3


Week 6 Oct 2, 5

 

Lecture Notes

BMI calculator function

Testing the BMI calculator function (need to have the above mfile also to run this) 

Is a number an integer or not?

An example of the switch construct

Sample HW problem

Reading Assignment: 203-210

 

Assignment

Assigned HW: Problem#4.  Follow guidelines given in the specifications and the sample HW problem.

 

Other HW problems: 5.1, 5.2, 5.11, 5.19, 5.22


Week 7 Oct 9, 12

Lecture Notes

Simple Examples of Loop     

       Loop Examples

Average & Standard Deviation

      Problem Statement

      Mfile

Example of Break and Continue Statement

      Mfile of Break Statement

      Mfile of Continue Statement

Assignment

Assigned HW: Problem#5.

Other HW problems:4.1-4.19, 4.22-4.27

Reading Assignment: 149-202; Skip Art 4.2.2; Skip Art 4.3; Skip Problem#4.9, 10, 11, 12, 13, 14, 15, 17.  Try other problems.


Week 8, Oct 16, 19

Lecture Notes

How many grains on given squares

     Problem Statement

     Mfile

How many squares filled by given grains

     Problem Statement

     Mfile

Clicker Quiz

     Loops Quiz

Blog Entries

     Break Statement

     Continue Statement

Assignment

Assigned HW for grade: Problem#6

Additional Exercises you can do at home for the test

      Square Root of a Number: Problem Statement | Mfile 

       Loops

       Maclaurin Series

Assigned Pages: No new pages assigned but redo the the previously assigned pages and problems.


Week 9 Oct 23, 26

Competency Test#2


Week 10, Oct 30, Nov 2

Lecture Notes

    Trapezoidal Rule

        Problem Statement 

        Mfile  Function Test

    Error Function

        Problem Statement

        Mfile  Function 1 Function 2 Test

   Picking up lotto numbers

        Problem Statement

        Mfile

 

Assignment

    Assigned HW: Problem#7

     Study and Memorize Matrix Algebra Handout


Week 11, Nov 6, 9

Lecture Notes

Bubble Sort

      Mfile

      Blog on bubble sort; Blog on the mfile

Trace of a matrix

      Problem Statement

      Mfile

Is a matrix a diagonal matrix or not? 

      Mfile (Pay close attention to the three different ways to do this problem)

Is a matrix an identity matrix or not? 

      Rough Mfile

      Method 1

      Method 2

Assignment

Assigned HW: Problem#8 (This is the last HW assigned for a grade for the semester)

Continue to Study the Matrix Algebra Handout


Week 12, Nov 13, 16

Lecture Notes

Finding Maximum of a Vector of Numbers

Strictly Diagonally Dominant

        Problem Statement     Rough Mfile

Diagonally Dominant

        Problem Statement     Rough Mfile

Assignment

Assigned HW: None (No more HWs or in-class quizzes)

Practice Programs

Is a matrix tridiagonal or not?

Is  a matrix symmetric or not?

Secant Method: Problem Statement


Week 13, Nov 20, 23

Lecture Notes

Reading from a file line by line

       Mfile   Input File

Reading Using a Loop

       Mfile   Input File

Reading using the While loop

       Mfile   Input File

Regression Model

       Mfile   Input File   

 

Assignment

Assigned HW: None

Practice Programs

      Secant Method: Problem Statement

      Symmetric Matrix: Problem Statement


Week 14, Nov 30, Dec 4

Competency Test#3 (The format is same as previous tests).  Do the practice programs.


Week 15, FINAL EXAM WEEK

See syllabus for date and time, and format. Note that the days of week and time for the final exam are different from regular meeting times.  Place is same as the lab.