Write a Matlab program that conquer reresolve control the swiftness of a stone dropped unstudied a structure as it hits the premise. The program should besides grant how desire it took to gravitate. Keep the structure culmination be a inconstant entered by the program.
we keep to verification the equation control farsighted swiftness, gone its dropped u conquer be 0,space conquer be the culmination of the structure and a conquer be correspondent to earths gravitational intensity which is 9.81m/s^2, so decisive swiftness can be grantn by sqrt(2*g*height). here is the matlab statute control the corresponding,
brisk = ‘What is the heigh of the structure? ‘;
x = input(prompt)
y = sqrt(2*9.81*x);
fprintf(‘stone swiftness as it hits the premise is %i m/s’,y)