Professional Documents
Culture Documents
In The Order of Their Evaluation
In The Order of Their Evaluation
Spring Semester
ME 349 Engineering Analysis
Homework, Part 4
Assigned: 02/02/18
Due: 02/09/18
Student__________________________CWID_____________________________________
For every problem, provide
The MATLAB script/function files that solve the problems.
Final answers. Run the prepared script/function file in the MATLAB command
window in order to obtain the numerical values or plots.
Hardcopy of the report must include printed codes (scripts/functions), printed
plots, and screenshots of MATLAB command window with numerical answers.
Problem 1: Solve problem 2 on page 209 of Gilat’s book. Write a script that solves the
problem. For (c), show results of the evaluation of every individual operator (= + >= > /)
in the order of their evaluation.
Problem 2: Solve problem 5 on page 210 of Gilat’s book. Write a script that solves the
problem. For (d), show results of every individual operator (|‐ & ~*‐ |) in the order of
their evaluation.
Problem 3: Solve problem 15 on page 212 of Gilat’s book. Write a function that solves the
problem. This function should have one input argument (x) and two output arguments (P
and N)
Problem 4: Write a script that solves problem 6 (a‐d) on page 210 of Gilat’s book.
Problem 5: Write a function that solves problem 13 on page 211 of Gilat’s book with single
input parameter m. Perform calculations with this function as requested.