MATLAB in Physics - Data Analysis

The second lecture in a series on using MATLAB in undergraduate physics courses.
Updated 1 Sep 2016

View License

MATLAB in Physics is a four lecture series in MATLAB that is offered to first year physics undergraduate students.
This lecture shows how to use MATLAB to fit experimental data such as that obtained in undergraduate physics experiments. Non-linear fitting to a more complicated model function is also demonstrated.

Edric Ellis delivered this lecture and added clarifications to Matt's example code, together with extra examples.

The aim of this lecture series is to introduce students to computational methods in MATLAB to solve problems arising in physics that cannot be solved analytically. No prior knowledge of MATLAB is required. Themes of data analysis, visualization, modelling and programming are explored throughout these lectures.

Cite As

Matt McDonnell (2024). MATLAB in Physics - Data Analysis (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Physics in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license

Updated copyright lines to from The MathWorks Ltd to The MathWorks, Inc.