How can I work out the rate of change for my experimental data?

98 views (last 30 days)
I have a set of experimental data I have plotted, I'd like a second graph demonstrating the rate of change of one of the variables. I have time against altitide, so the seocn graph is the rate of change of altitude (gradient of the first graph) against time. Please can people direct me to using the right code
Thank you

Accepted Answer

Torsten
Torsten on 14 Nov 2018
Edited: Torsten on 14 Nov 2018
rate_of_change_of_altitude = diff(altitude)./diff(time)

More Answers (0)

Categories

Find more on Networks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!