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?

Risposte (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

Tag

Richiesto:

il 10 Ott 2018

Commentato:

il 15 Ott 2018

Community Treasure Hunt

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

Start Hunting!

Translated by