The power trendline does not work correctly.

Power Trend line equation has the form y=ax^b, but in MATLAB Online it always appear a=b.

4 Comments

Can you give more details on what issue you're facing? It's a bit unclear from the statement.
If I understand the question, you are saying that the fit line equation should be y=ax^b but instead appears to be y=ax^a.
Can you share your data and fit code so that we can test as well?
Hi guys, thanks for the comments. I've been doing several simulations in MATLAB Online and whenever I try to use a power trend line, the equation appears with the coefficients a and b equal. In the case of the photo, the data for this example is stored in the MAT file XYData.mat. The trend line is correct, but it seems like there is a bug in the equation.
I have been using simulink.

Sign in to comment.

 Accepted Answer

I do not think the issue is related to using Simulink Online. I get the same result in simulink, whether I'm using the desktop or online version. I do get a different result between the Curve Fitter App in MATLAB and the SDI trendline. I think this is a bug and will report it. In the meantime, you could use the Curve Fitter app in MATLAB.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!