You are on page 1of 7

Introduction to Programming for Mechanical

Engineers (ME 319)


Final Exam Review

Problem 5: Lecture 8 and Lecture 9

Multiple choice, Fill in the blanks or True/False questions.

Sample examples:

Histogram plots aggregates the data in the vector y into n bins evenly spaced
between the minimum and maximum values in y. (True or False).Answer: True

syms can be used to create multiple symbolic data type objects. (True or
False).Answer: True

If x is a symbolic data type object, then f may or may not be a symbolic


object; where f = 3*x^2 + 6*x + 1. Answer: False

_______ MATLAB function is used to evaluate the value of sin(x)/x when x


approaches zero. Answer: Limit

Derivative and Integration functions review. Numerical Integration functions.

Quad and Quadl are more accurate than Trapz function for numerical
integration. (True)

Problem 4: Simulink Question

Go through the examples in Introduction to


Simulink lecture.

Two Simulink problems:

1. Simple straight forward example

II. Simple differential equation example

Go through lecture 10 up to slide # 11.

Problem 3: Loop problem

Go through all the loop problems from final


project and Extra Credit HW.

Go through the temperature - heat conduction


problem on project.

Go through the series/parallel connection


problem. (Problem 26 on chapter 4 Page
206).

Go though Lecture 7 for review of loops.

Problem 2: Conditional statement problem

Go through Lecture 6_1 and 6_2.

If-elseif-else-end statement.

switch-case-otherwise-end statement.

Go through Practice problem set # 1 for


examples.

Problem 1: Simple problem on MATLAB


user-defined functions

How to create user-defined functions.

How to call user-defined functions.

How to define a function using function handle


(@).

The topic of MATLAB User-defined Functions is


covered in lectures 5-1 and 5-2.

Thank you for the attention

Any Questions and


Suggestions
please

You might also like