Reference no: EM132511767
EG1002 Computing and Sensors - James Cook University
Problem Task
Your task is to implement:
ˆ A MATLAB function that takes as input the initial position and initial velocity of the ball, and simulates its motion. The function must graphically display the trajectory, and indicate whether the conversion kick was successful. (A successful kick must pass between the goal posts and above the crossbar.)
ˆ In a separate M-file, give at least two examples that show how to call your function. You should demonstrate a successful kick and an unsuccessful kick. To enable each example to be run independently, it is recommended that you use MATLAB's cell mode (where blocks of code are separated by lines beginning with "%%").
Things to Consider
You will need to research some of the National Rugby League regulations that are relevant to your simulation. As a starting point, you will need to determine:
ˆ The mass of an NRL football;
ˆ The cross-sectional area of the football, which is required to calculate the drag force (hint: consider the surface area of an ellipse);
ˆ The size of a football field, which will define the allowable positions from which a conversion kick may be attempted; and
ˆ The geometry of the goal posts, which determine if a kick is successful or not.
All the details that affect your program output (e.g. the cross-sectional area
of the football) must be clearly outlined in the preamble section of your MATLAB program, as comments.
Attachment:- Computing and Sensors.rar