Unformatted text preview: The work required to move the object over a displacement, d, for a given force vector is W = • F d The force and displacement quantities are both expressed as vector quantities and the product is the normal vector dot product. Write a MATLAB script that asks the user to enter vectors for the two forces and then adds the vectors together to calculate a resultant force. Also ask the user for the displacement vector. Note that in MATLAB you can enter vectors directly using the input function. Use your program to calculate the work expended in moving an object 10 m in the x direction, 5m in the y direction, and 1m in the z direction when acted upon by the two forces below. Also calculate and print the angle that the resultant makes with the displacement. 1 2 15 20 5 20 5 7 F i j k and F i j k = + + =-+...
View Full Document
This note was uploaded on 09/26/2010 for the course CHE 210 taught by Professor Swinnea during the Fall '08 term at University of Texas.
- Fall '08
- Chemical Engineering