Use polyfit to find standard curve fitting functions

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)

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

Asked:

on 10 Oct 2018

Commented:

on 15 Oct 2018

Community Treasure Hunt

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

Start Hunting!