Matlab Function Fitting: Tips & Tricks

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
Synesthesia
Messages
12
Reaction score
0
Hello all,

How do people generally fit data in Matlab? I am trying to fit an exponential decay and it doesn't look straightforward. I am looking this up at the moment, but maybe people can give me good answers or starting points here.

Thank you!
 
Physics news on Phys.org
Think this is fminspleas
 
I usually use polyfit with the appropriate logarithms.