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 Kommentare

Saurav
Saurav am 30 Sep. 2024
Can you give more details on what issue you're facing? It's a bit unclear from the statement.
Cris LaPierre
Cris LaPierre am 30 Sep. 2024
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?
Guilherme
Guilherme am 1 Okt. 2024
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.
Guilherme
Guilherme am 1 Okt. 2024
Bearbeitet: Guilherme am 1 Okt. 2024
I have been using simulink.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 1 Okt. 2024

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Mehr zu Parallel Computing Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by