How can i find an equation from datas?
Show older comments
Hello,
As part of a renewable energy optimization project,
I am trying to define an equation from wind and photovoltaic data over one year using the fit or lsqnonlin function.
How can i find an equation from this datas?
can you help me
3 Comments
Ameer Hamza
on 17 Oct 2020
You need to have a model to fit the data. Otherwise, there is no unique solution. You can pick any equation, and it data will fit to the data to some degree.
KSSV
on 17 Oct 2020
Read about polyfit, curvefitting toolbox.
Alex Sha
on 18 Oct 2020
Hi, Clothilde, post out your data if possible.
Answers (1)
Athul Prakash
on 23 Oct 2020
Edited: Athul Prakash
on 23 Oct 2020
0 votes
You may pick out a model first to fit your data onto. There a wide variety of models available in Matlab and the choice would depend on the kind of data that you have - if you can post the data here along with your question, you may get better recommendations.
To start with, I would recommend polyfit or lsqnonlin. I might also try playing with simple Neural Network models as a next step.
Have a look at this doc as well:
Hope it helps!
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!