Use polyfit to find standard curve fitting functions

1 view (last 30 days)
I have two matrix
T3_All and T3_Max
Given these two matrices how do I find the linear, power and exponential functions using polyfit function?

Answers (1)

Walter Roberson
Walter Roberson on 10 Oct 2018
polyfit(x, y, 1)
polyfit(x, exp(y), 1) %you might need to take log() of part of the results
polyfit(x, log(y), 1) %you might need to take exp() of part of the results

Tags

Community Treasure Hunt

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

Start Hunting!