Creating a formula from plot points

Click For Summary
SUMMARY

This discussion focuses on deriving a formula from plot points using MATLAB 7.1. The primary method discussed is regression analysis, specifically utilizing the MATLAB function polyfit to find the best-fitting line in the form of y=mx+c. The conversation emphasizes the importance of having a clear understanding of the underlying equation before proceeding with the analysis. Participants highlight that with only two points, one can only create a linear representation.

PREREQUISITES
  • Understanding of regression analysis principles
  • Familiarity with MATLAB 7.1 software
  • Knowledge of linear equations and their components (slope and intercept)
  • Ability to interpret graphical data representations
NEXT STEPS
  • Research advanced regression techniques in MATLAB, such as polyval for evaluating polynomial fits
  • Explore data visualization methods in MATLAB to better understand plot representations
  • Learn about different types of regression analysis, including polynomial and nonlinear regression
  • Investigate best practices for preparing datasets for regression analysis
USEFUL FOR

This discussion is beneficial for data analysts, researchers, and students who are working with MATLAB to analyze datasets and derive mathematical models from graphical data. It is particularly useful for those interested in regression analysis and linear modeling techniques.

Little_grim
Messages
1
Reaction score
0
Hallo all...

I have a couple of plot values that I am trying to derive a formula from. The points are almost linear but not quite...

Was hoping someone could shed some light on how to go about this...
I have Matlab 7.1, would like to use it if at all possible...

Any help would be appreciated.
 
Physics news on Phys.org
Welcome to PF;
Turning a plot into an equation is called regression analysis.
You have to start out with a good idea of what the underlying equation should be before you start.

If you only have two points, then you can only plot a line - I'm guessing you mean you have a couple of datasets that, when you graph them, make something that looks like it's trying to be a line.

The MATLAB function you want will be: polyfit
... you want to find the line y=mx+c that best fits the data.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 14 ·
Replies
14
Views
4K