trying to plot fminsearch as a polynomial
Show older comments
I imported a set of data and I made a function to do a least squares error fit.
CO2_L1E = @(comp) sum( abs((comp(1)* exp(comp(2)* year) + comp(3)) -CO2))
A6 = fminsearch(CO2_L1E,[30;0.03;300])
How would I plot this
Answers (1)
Matt J
on 1 May 2023
fplot( @(year) A6(1)* exp(A6(2)* year) + A6(3) )
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!