This action might not be possible to undo. Are you sure you want to continue?

:

**ChE 210 Final Exam Saturday, May 14, 2010
**

Answer the following questions in the space provided. MATLAB syntax will be expected to be correct. Your work must be readable to receive full credit and only one answer per question is allowed. If there is extra work on a page, box the answer you want graded. Allowed MATLAB functions are: trigonometric functions (regular and inverse), sqrt, log functions, exp, abs, rem, length, size, ones, zeros, rounding/truncating functions. If you think I have missed a useful function please ask before you use it. A note about repetition: I expect the proper MATLAB repetition commands to be used for number and condition based repetition.

1. Force vectors are often described using polar coordinates (magnitude and angle); however when several forces act on an object the “resultant” overall force and direction can best be calculated by calculating the rectangular components of the vectors (Fx and Fy), putting them in vectors and then summing the vectors to get the resultant. Then the resultant can be changed back into polar coordinates. Two tugboats are pulling on a large barge that must go directly down a river. The two tugs pull with different amounts of force in different directions. Write a script that asks the user for the magnitude and direction for each of the two tugs and then calculates the resultant force and direction. The program will print resultant force and direction. Use fprintf statements to print a nicely formatted output. Equations: Polar to Rectangular Rectangular to Polar

F 2 = Fx2 + Fy2 tan θ = Fy Fx

Fx = F cos θ Fy = F sin θ

F is magnitude of a vector. θ is direction. Fx and Fy are the x and y components of the vector.

.

x ). The first is a vector of polynomial coefficients p and the second is a scalar x. The function’s return value is to be the value of the polynomial p evaluated at x. The function does not have to check to make sure that p is a vector or that x is scalar. Write a MATLAB function that accepts two arguments p and x. . A polynomial has the form p ( x ) = p1 x n −1 + p2 x n − 2 + ⋯ + pn −1 x + pn Example: p(x) = 3x5 – 7x3 + 2x2 + 5x – 4 p = [ 3 0 -7 2 5 -4 ] The form of your function is y = polyv( p .2.

Now that you have written polyv( p . The p argument is the same as before. scalar. matrix in matrix out).3. or matrix. vector (both row and column). The function is to return evaluations of the polynomial for each element in x (scalar in scalar out. x ) to evaluate arguments where x can be any size. . x ) write a second function multipoly( p . x ) that uses polyv( p .

Assuming the ball is thrown with a velocity v0=25m/sec everything is known except for the throwing angle θ0. Write the necessary command-line commands ( >> ) that would solve the problem with the given parameters using an anonymous function call and fzero. when it arrives at home-plate the value of y will be zero. If it is well thrown. When a baseball is thrown from the outfield to home-plate it follows the well known rules for projectile flight. distance . Note that x and v are included in the function so that we can examine more cases than this specific example. Write a function toss( theta . velocity ) that describes the problem. .8 2 2v 0 cos 2 θ 0 Assume a ball is thrown to home from center field ( x = 90m ).4. y = x tan θ 0 − g x 2 + 1. Since the left-hand side of the equation becomes zero we can use fzero to determine the proper throwing angle.

Basic expressions MATLAB and Excel. 2+4^2/2 b. 8+12/3+1 d.5. 2-12/2*3 c. ((2+3)^2)/(8-(2+1)) . Evaluate the following numerical expressions: a.

c = 1. Simple Logicals: Understanding logical expressions is key to using MATLAB if and while constructions. a < b & c < d c.6. Assume a = 20. a < d < c . d = 2. a. Evaluate the follow logical expressions answering either true or false. a == b d. a | b < c e. b = −2. a > b b.

The data are shown plotted on the following page as a normal plot. a semi-log plot and a log-log plot.7. What. . if anything can you conclude about the type of equation that might be used to represent the data. A group of students have measured the quantity of water discharged from a tank as a function of time.

.

2 . 1 ] d. 3 . 2 \ [ 4 . [ 2:3:8 ]’ . 4 ] . 6 . Evaluate the following expressions: a. 0 −1 ] b. [ 1 . 0 −1 ] c. 3 . 2 . 4 ] * [ 5 . In MATLAB the use of matrix vetor math can be a big time saver. 6 . 2 .* [ 5 . [ 1 .8.

UT Swinea

UT Swinea

- Tutorial matlab
- EE241-Lecture4
- prob03
- Matlab to Simulink
- MATLAB
- Vector Calculus 1
- Matlab Intro
- MATH2230_sep2010
- Aandrew -Best Matlab Practices for Queueing Theory
- 01 Vector Operations
- Digital Image Processing
- 01062869
- Electricity 1
- Adding Vectors
- Calc 241
- Webster Theory of Electricity and Magnetism, Being Lectures on Mathematical Physics (1897)
- Untitled
- Image Processing Toolbox
- MSG322note1
- Speech Recognition
- MATLAB HW.pdf
- Sections of a CBuilder Model
- S0002-9904-1927-04482-2
- 2005 CBSE Mathematics Paper
- M3 Experiment
- seq-ckts
- Mfuse Help
- Crowe History of Vectors
- Ode 45
- Lab 8
- ChE210 Sample Final

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.

scribd