If I had the derivative of an equation and had data points how would I plot them
Show older comments
My derivative is 1 - (sin(x))/(2√(x)) - (√x)(cos(x)) and x = [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] how would I plot them?
Accepted Answer
More Answers (1)
Walter Roberson
on 2 Oct 2022
0 votes
if you have numeric derivative and you want to plot the original curve (to within a constant shift) then use cumtrapz() and plot that.
Categories
Find more on 2-D and 3-D Plots 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!

