Plot graphs in Matlab using script file

Plot graphs in MATLAB using script file.
To do
The displacement of an object falling under the force of gravity is given by:
Y=gt 2
Where g is the acceleration of gravity of Earth [m/s 2 ], y is the distance traveled [m], and t is time
[s]. Plot the distance fallen as a function of time near the surface of the Earth between 0 and 10
seconds, with an increment of 1 second. Add a title and x and y labels.

Answers (1)

KSSV
KSSV on 26 Aug 2020
You need to read about
  1. linspace
  2. plot
  1. Define t using linspace and the limits given.
  2. DEfine g
  3. Write your formula.
  4. Use plot

Asked:

on 26 Aug 2020

Answered:

on 26 Aug 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!