A MATLAB-based GUI application designed for statistical data analysis, curve fitting using polynomial functions, and error analysis (
-
Polynomial Fitting: Computes
$n^{\text{th}}$ degree polynomial coefficients:$$p(x) = p_1 x^n + p_2 x^{n-1} + \dots + p_n x + p_{n+1}$$ -
Error Calculation: Evaluates total sum of squares (
$SST$ ) to measure fitting accuracy:$$SSE = \sum (y - \hat{y})^2$$ - Data Normalization: Normalizes input data using mean values for numerical stability during matrix operations.
- Dynamic Fitting: User-defined polynomial degree input via GUI.
- Interactive Data Table: Displays raw, normalized, fitted, and error residual values in real-time.
- Visual Plotting: Overlay comparison of original data points versus fitted polynomial curves.
- Excel Integration: Imports input dataset (
Aleppo_Population_Statistics.xlsx) and exports output analysis (Output.xlsx).
- MATLAB R2020b or higher
- Clone the repository:
git clone [https://github.com/MAQattan/matlab-population-curve-fitting.git](https://github.com/MAQattan/matlab-population-curve-fitting.git)- Open MATLAB and set the working directory to the project folder.
- Ensure
Aleppo_Population_Statistics.xlsxis present in the working directory. - Run
population_fitting_app.mor typepopulation_fitting_appin the MATLAB Command Window.
Distributed under the MIT License. See LICENSE for more information.
