MATLAB Answers

How can i find an equation from datas?

2 views (last 30 days)
Clothilde Maugars
Clothilde Maugars on 17 Oct 2020
Edited: Athul Prakash on 23 Oct 2020
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


Ameer Hamza
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
Alex Sha on 18 Oct 2020
Hi, Clothilde, post out your data if possible.

Sign in to comment.

Answers (1)

Athul Prakash
Athul Prakash on 23 Oct 2020
Edited: Athul Prakash on 23 Oct 2020
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!


Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by