ENME271Test4Summer09Sol

Enme271test4summer09sol

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: I ntroduction to MATLAB ENME271 CLOSED BOOK AND CLOSED NOTES Test #4 2009 1 hr and 40 min Problems 2, 3 and 4 are to be solved on the computer using MATLAB. The questions in problem 1 are to be answered in handwritten form with the MATLAB software not booted. Turn in your answers to problem 1 before starting to work on the remaining problems Prob. 1 The questions in problem 1 are to be answered in the contex of MATLAB. (a) What are two limitations that an inline function has that a user-defined f unction file does not have? (b) When would you use t rapz rather than quad t o carry out an integration? (c) What is the format for the ode45 command? (d) How does the size of the intervals beween successive values of the independent variable s pecified in the ode45 command affect the accuracy of the results? (e) What is the format of the f solve command? (f) What is the format of the polyfit command and what is its output? (g) Write out the plot command for the case where y is to be plotted versus x in Cartesian c oordinates using a solid black line having a linewidth of 2. T...
View Full Document

This note was uploaded on 02/27/2010 for the course ENME 271 taught by Professor Marks during the Summer '08 term at Maryland.

Ask a homework question - tutors are online