I am trying to write a code to plot a graph for Range vs theta for projectile motion and using it in LABVIEW. I don't know how to incorporate θ as positive and negative when above and below the horizontal. Below is the code I have written for LABVIEW's MATLAB script
vg = 9.8HV = v.*vG = 2.*gtheta = linspace(0,90,91)a = 2.*thetab = sin(a)c = b.*bd = V/Ge = 8.*g.*H /VA = sqrt((sin(a)).^2+e.*(cos(theta)).^2)R = d.*[a+A]
Best Answer