###### Expert Q&A

## Q.10 Write a MATLAB code where the MATLAB asked the user to specify the value of acceleration due to gravity and time and store it in variable ‘g’and ‘t. Based on these two values MATLAB will calculate distance (d) which is 0.5*g*t*t and display the output

Question: Q.10 Write a MATLAB code where the MATLAB asked the user to specify the value of acceleration due to gravity and time and store it in variable ‘g’and ‘t. Based on these two values MATLAB will calculate distance (d) which is 0.5*g*t*t and display the output Click the button Read more…