Discussion Overview
The discussion revolves around fitting data points using MATLAB, specifically focusing on polynomial fitting and the challenges associated with fitting non-polynomial functions. Participants explore various MATLAB commands and functions for data fitting.
Discussion Character
- Technical explanation
- Mathematical reasoning
- Homework-related
Main Points Raised
- One participant provides a simple example of data points and asks how to fit them using a linear function in MATLAB.
- Another participant suggests using the 'cftool' command for curve fitting.
- A participant mentions using the 'polyfit' function with the syntax polyfit[x, y, 1] for linear fitting and refers to the documentation for further details.
- There is a query about fitting data to a non-polynomial function of the form y=(x-a)^n + b, and the participant seeks guidance on how to apply 'polyfit' in this case.
- A response clarifies that 'polyfit' is not suitable for non-polynomial functions and suggests using a polynomial fit instead, while also discussing the challenges of determining the exponent 'n' in such fitting problems.
Areas of Agreement / Disagreement
Participants express differing views on the applicability of 'polyfit' for non-polynomial functions, indicating a lack of consensus on how to approach fitting such functions in MATLAB.
Contextual Notes
Participants mention the limitations of 'polyfit' in fitting non-polynomial functions and the complexities involved in solving for exponents in least squares fitting problems.
Who May Find This Useful
Users interested in data fitting techniques in MATLAB, particularly those dealing with polynomial and non-polynomial functions.