For a catapult project I must make a MATLAB code that shouldmake use of the projectile motion equations so for a given inputrange R (horizontal distance from the catapult to the target), thecode outputs the necessary velocity and firing angle of thecatapult. I must be able to input ranges: 7ft, 8ft and 9ft and theoutput of the code should give me the possible velocities and thetaof the catapult.