

Given that
we have to write the MATLAB code to the given problem
MATLAB CODE:
function [y,allScores] = fieldGoal(x,v0,theta)
pointsSuccess = 3;
feetsInYard = 3;
g = 32.2; %ft/s^2
y0 = 0; % from ground
crossBarHeight = 10; %feet
f = @(x,v0,theta) x.*tan(theta) - (x.^2.*g)./(2.*(v0.*cos(theta)).^2) + y0;
theta = theta*pi/180; % to radians
x = (17+ x); %in yards
x = x.*feetsInYard; % to feet
y = f(x,v0,theta); %computing verticle distance y
allScores = zeros(1,numel(y));
%goal
goalIndices = find(y>crossBarHeight);
numberOfSucessPoints = numel(goalIndices);
successScores = ones(1,numberOfSucessPoints).*pointsSuccess;
feetAtGoalIndices = y(goalIndices);
yardsAtGoalIndices = feetAtGoalIndices./feetsInYard; % to yards
onePointIndices = find(yardsAtGoalIndices==15); %
successScores(onePointIndices) = 1;
allScores(goalIndices) = successScores;
end
--------------------------------------------------------------
%driver file
clc
clear
close all
v0 = linspace(1,80,10) %feet/s
%x = linspace(0,30,10) % feet
x = 30% feet
theta = 45 %degrees
[y,pointsAwarded] = fieldGoal(x,v0,theta)


MATLAB Grader CONTENTS For this problem you will model a field goal attempt in an NFL football ga...
(Please show all work) Suppose a field goal kicker (American football) can kick the ball at a launch speed of 58 miles/hour. If the ball is placed at the 50-yard line, he is actually kicking the ball 60 yards to the goal post. Additionally, the crossbar is 10 feet above the ground. (1 mile = 5280 ft = 1760 yds = 1609.3 m) A. Convert all distances to SI units; all answers will thus be in SI units. B. Show...
The Saint Louis Rams nearly lost a play-off game after field-goal kicker Jeff Wilkins sent a 132 ft. field-goal attempt (that is, he kicked the ball from the 34 yard-line) straight into the goal-post cross-bar, which is 10 ft. above the ground. He kicked the 2 lb. ball at an angle of a = 30°. 10 feet 132 feet- Treat the ball as a point mass, and neglect wind resistance. (a) (20 pts) What is the velocity v, with which...
The Green Monster, as shown below, is a wall 37 feet high in left field at Fenway Park in Boston. The wall is 310 feet from home plate down the third base line. If the batter hits the ball 4 feet above the ground, neglecting air resistance, determine the minimum speed that the bat must impart to the ball that is hit over the Green Monster. COVIDIE CVS. ELABOR The equations of motions for the baseball are x(t) = (u...
Don't attempt if you can't attempt fully, i will dislike a nd negative comments would be given Please it's a request. c++ We will read a CSV files of a data dump from the GoodReads 2 web site that contains information about user-rated books (e.g., book tit le, publication year, ISBN number, average reader rating, and cover image URL). The information will be stored and some simple statistics will be calculated. Additionally, for extra credit, the program will create an...
Don't attempt if you can't attempt fully, i will dislike and negative comments would be given Please it's a request. c++ We will read a CSV files of a data dump from the GoodReads 2 web site that contains information about user-rated books (e.g., book titnle, publication year, ISBN number, average reader rating, and cover image URL). The information will be stored and some simple statistics will be calculated. Additionally, for extra credit, the program will create an HTML web...