Predict power consumption using linear regression
Ältere Kommentare anzeigen
I want to predict power consumption per hour with this data using linear regression.
How can i do this?
Akzeptierte Antwort
Weitere Antworten (1)
Florian Bidaud
am 28 Okt. 2022
0 Stimmen
Hi,
You can use the function polyfit with x being the time and y being the power consumption, you will have to choose n to fit your data as you want. In your data, I guess when the time comes back to 1 it means it's another day ? Then you will need to change 1,2,3,..., 23 to 25,26,27,....47 for the second day and so on
Kategorien
Mehr zu Linear and Nonlinear Regression 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!

