- You may use the function lsline that calculates the least-square values and plots predict the best fit line
- Have a look at this answer on "Least fit" here: Link
- Here's a write-up on Linear Regression (a linear equation that best describes the collection of points): Link
Problem with get the equation of the signal.
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone, I would like to ask is that anyway that can I get the equation from this signal?
This signal is plotted by using the data from a table.
But I didn't found anyway to get the equation of this plotted signal :(
If anyone know, pls share the way to me. Thank you very much.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282776/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282776/image.png)
Please let me know if you know the way thankyou.
0 件のコメント
回答 (1 件)
Vinai Datta Thatiparthi
2020 年 4 月 14 日
Hello,
Since you haven't shared the data, my best guess would be that the function polyfit is what you're looking for.
Having said that, from the figure that you've shared, it appears that there might not be one equation that perfectly represents the data. A simple linear or quadratic equation may not be able to "fit" the data properly. The values that you get out of polyfit may not describe the plot correctly.
Alternatives:
Hope this helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!