ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 11 May 2017 My Price 9.00

6m4m30°Week 9 Application ActivityME219 Computer Programming

How do I perform these 2 operations in MATLAB??? DUE AT MIDNIGHT IN HALF HOUR! 

PARTS 4 AND 5 OF ATTACHED PDF

 

6m4m30°Week 9 Application ActivityME219 Computer Programming for EngineersThis week we will revisit our problem from Week 1, except this time we’ll use MATLAB to solve it. Fredthrows a high pass to his friend George standing on a nearby hill as shown, with initial horizontal andvertical velocities of 4 and 10 m/s, respectively. We’re interested in figuring out some of aspects of theball’s trajectory relative to George’s position (i.e. components of the trajectory that are tangential andnormal to the plane of the hill). You will follow 2 general steps when solving this problem: (1) Calculatehorizontal and vertical positions of the ball relative to Fred’s location; and (2) Perform a coordinatetransformation to determine the tangential and normal components of the ball’s position relative toGeorge’s location.1.Start MATLAB, navigate to the directory where you want to save your work, and start a new m‐file called “balltrajectory.m”. Your program should do the following:2.PART 1: create a time row vector running from zero to 2 seconds in steps o 0.1 seconds.3.PART 2: create variables representing the following given conditions:a.Initial position of the ball in (x,y) coordinates (neglect Fred’s height)b.Initial velocity of the ballc.Acceleration due to gravityd.Orientation of (u,v) coordinate system with respect to (x,y) coordinate systeme.Position of (u,v) coordinate system in (x,y) coordinatesf.2x2 rotation matrix4.PART 3: using the equations of projectile motion, create row vectors representing x and ypositions as functions of your time vector:ݔሺݐሻൌݒ଴௫ݐ൅ݔ௢ݕሺݐሻൌݒ௢௬ݐെ12݃ݐଶ൅ݕ௢xyuv

5.PART 4: using your rotation matrix, (x,y) coordinates, and (dx,dy) coordinates, calculate thetransformed (u,v) coordinates using the following equation. This should give you a singlevariable with 2 rows (1 for the u coordinate, 1 for the v coordinate).ሾܴሿ ൤ݔെ݀ݔݕെ݀ݕ൨6.PART 5: using array addressing, extract the first and second rows of the matrix from PART 4 andstore as separate u and v variables, respectively.7.PART 6: although we haven’t officially learned about plotting in MATLAB, it’s helpful to visualizethis problem. Type the following commands to produce plots of your work:figure(1)plot(x,y)xlabel('X')ylabel('Y')title('Ball trajectory from Fred''s reference frame')axisequalgridfigure(2)plot(u,v)xlabel('u')ylabel('v')title('Ball trajectory from George''s reference frame')axisequalgrid8.PART 7: use comments in your code to describe what each section is doing.When finished, upload your completed m‐file to Blackboard using the link provided.

Attachments:

Answers

(11)
Status NEW Posted 11 May 2017 07:05 AM My Price 9.00

-----------

Not Rated(0)