Write a Matlab program that succeed clear-up coercion the speed of a stone dropped impromptu a construction as it hits the basis. The program should besides surrender how crave it took to lapse. Keep the construction acme be a changeable entered by the program.
we keep to manifestation the equation coercion sagacious speed, gone its dropped u succeed be 0,absence succeed be the acme of the construction and a succeed be similar to earths gravitational coercionce which is 9.81m/s^2, so conclusive speed can be surrendern by sqrt(2*g*height). here is the matlab principle coercion the selfsame,
alert = ‘What is the heigh of the construction? ‘;
x = input(prompt)
y = sqrt(2*9.81*x);
fprintf(‘stone speed as it hits the basis is %i m/s’,y)