Does the curve fitting toolbox have power regression?

I have a scatter plot that I can fit a power trend-line to in Excel. All I could find out is that I will need the function "fit()" which is in the curve fitting toolbox to do the same thing in Matlab. The end goal is to use the equation of the trend-line of the form y = a*x^b.
However, I was unable to find more than one source saying that a power regression is possible using that function. The possible script I found used the fit function and passed the argument 'power1'. Is this a legitimate option I will have access to using the curve fitting toolbox?

 Accepted Answer

Read the help. Under doc fit, it told me to look at "List of Library Models for Curve and Surface Fitting".
Under there, I looked for power1, where it tells you the model assumed is:
Y = a*x^b

3 Comments

I'm not sure how to get to the page you are looking at, as I am fairly new to MATLAB. Searching "fit" in the help menu did not produce any helpful results. It was also not listed in the help menu's list of functions.
Could you provide a link or some direction on how I could view this document myself?
It appears my trouble finding the page you were on is because Matlab "Help" only includes documentation on the toolboxes that are already installed.
I just found the documentation you were looking at by doing a secondary search on the Mathworks website. I wouldn't have thought they would have different information.
Thank you for responding, you pointed me in the right direction.
Ugh. I suppose if you don't have that toolbox yet, you cannot use doc for the indicated functions. :)
Yes, you had to dive into the online help for that function.
To be honest, I wish there was a simpler way to find the entire set of models offered by fit, as I did need to wander around a bit myself to find that information.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!