Write a Matlab program that allure explain ce the speed of a stone dropped unpremeditated a edifice as it hits the reason. The program should to-boot concede how desire it took to decline. Possess the edifice altitude be a mutable entered by the program.
we possess to portraiture the equation ce wary speed, gone its dropped u allure be 0,separation allure be the altitude of the edifice and a allure be correspondent to earths gravitational cece which is 9.81m/s^2, so conclusive speed can be conceden by sqrt(2*g*height). here is the matlab rule ce the identical,
unhesitating = ‘What is the heigh of the edifice? ‘;
x = input(prompt)
y = sqrt(2*9.81*x);
fprintf(‘stone speed as it hits the reason is %i m/s’,y)