Values of q should be accepted in degrees and then


The formula for range of a range of a projectile is given as range=(v^2sin(2Q))/g, where Q is an angle in radians,and gravity g=9.81 Create a function m file with for the formula given,define g within the function.add appropruate help comments that describe the formula,the inputs, the outpit, and units,add additional comments in the body of the function as appropiate descriptive purposes.Values of Q should be accepted in degrees and then converted to radians within the function body for use in the formula. Be sure to structure your function in a way that will accept both scalar and vector inputs.

part b

in your script file ,define the vector v in the range of 0 to 10 and vector Q in the range in the range of 0deg. to 360 deg.both vectors shoud be on the same size.Defina vector r using the function with the vectors v and Q.

part c

Plot v vs.Q on a plot. determine the max value of range for this data set using the max function.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Values of q should be accepted in degrees and then
Reference No:- TGS0661579

Expected delivery within 24 Hours