Skip to main content Skip to navigation


A user-friendly program for background subtraction and fitting of magnetization data

SquidLab is an open-source program free to download for academic use with a full user-friendly graphical interface for performing flexible and robust background subtraction and dipole fitting on magnetization data.

For magnetic samples with small moment sizes or sample environments with large or asymmetric magnetic backgrounds, it can become necessary to separate background and sample contributions to each measured raw voltage measurement before fitting the dipole signal to extract magnetic moments. Originally designed for use with pressure cells on a Quantum Design MPMS3 SQUID magnetometer, SquidLab is a modular object-oriented platform implemented in Matlab with a range of importers for different widely available magnetometer systems (including MPMS, MPMS-XL, MPMS-IQuantum, MPMS3, and S700X models) and has been tested with a broad variety of background and signal types.

The software allows background subtraction of baseline signals, signal preprocessing, and performing fits to dipole data using Levenberg–Marquardt non-linear least squares or a singular value decomposition linear algebra algorithm that excels at picking out noisy or weak dipole signals. A plugin system allows users to easily extend the built-in functionality with their own importers, processes, or fitting algorithms.

A full description can be found in Matthew Coak et al., Review of Scientific Instruments 91, 023901 (2020)Link opens in a new window, and in the accompanying SciLight articleLink opens in a new window for a general audience.

SquidLab is written in Matlab, designed to be flexible and customisable, and can be downloaded, under Academic License, from the University of Warwick depository ( opens in a new window).


Matthew Coak

School of Physics and Astronomy
University of Birmingham
United Kingdom

m dot j dot coak at bham dot ac dot uk