Simple MATLAB and Python scripts for multi-exponential analysis (2025)

Abstract

Multi-exponential decay is prevalent in magnetic resonance spectroscopy, relaxation, and imaging. This paper describes simple MATLAB and Python functions and scripts for regularized multi-exponential analysis methods for 1D and 2D data and example test problems and experiments. Regularized least-squares solutions provide production-quality outputs with robust stopping rules in ~5 and ~20 lines of code for 1D and 2D inversions, respectively. The software provides an open-architecture simple solution for transforming exponential decay data to the distribution of their decay lifetimes. Examples from magnetic resonance relaxation of a complex fluid, a Danish North Sea crude oil, and fluid mixtures in porous materials—brine/crude oil mixture in North Sea reservoir chalk—are presented. Developed codes may be incorporated in other software or directly used by other researchers, in magnetic resonance relaxation, diffusion, and imaging or other physical phenomena that require multi-exponential analysis.

Original languageEnglish
JournalMagnetic Resonance in Chemistry
Number of pages14
ISSN0749-1581
DOIs
Publication statusAccepted/In press - 2024

Keywords

  • 1H
  • Exponential decay
  • Inverse problems
  • Magnetic resonance relaxation
  • Multi-exponential analysis
  • NMR

Access to Document

Fingerprint

Dive into the research topics of 'Simple MATLAB and Python scripts for multi-exponential analysis'. Together they form a unique fingerprint.

View full fingerprint

Cite this

  • APA
  • Author
  • BIBTEX
  • Harvard
  • Standard
  • RIS
  • Vancouver

Afrough, A., Mokhtari, R. (Accepted/In press). Simple MATLAB and Python scripts for multi-exponential analysis. Magnetic Resonance in Chemistry. https://doi.org/10.1002/mrc.5453

Afrough, Armin ; Mokhtari, Rasoul ; Feilberg, Karen L. / Simple MATLAB and Python scripts for multi-exponential analysis. In: Magnetic Resonance in Chemistry. 2024.

@article{87ce5e62efb04f8983261e70354183ec,

title = "Simple MATLAB and Python scripts for multi-exponential analysis",

abstract = "Multi-exponential decay is prevalent in magnetic resonance spectroscopy, relaxation, and imaging. This paper describes simple MATLAB and Python functions and scripts for regularized multi-exponential analysis methods for 1D and 2D data and example test problems and experiments. Regularized least-squares solutions provide production-quality outputs with robust stopping rules in ~5 and ~20 lines of code for 1D and 2D inversions, respectively. The software provides an open-architecture simple solution for transforming exponential decay data to the distribution of their decay lifetimes. Examples from magnetic resonance relaxation of a complex fluid, a Danish North Sea crude oil, and fluid mixtures in porous materials—brine/crude oil mixture in North Sea reservoir chalk—are presented. Developed codes may be incorporated in other software or directly used by other researchers, in magnetic resonance relaxation, diffusion, and imaging or other physical phenomena that require multi-exponential analysis.",

keywords = "1H, Exponential decay, Inverse problems, Magnetic resonance relaxation, Multi-exponential analysis, NMR",

author = "Armin Afrough and Rasoul Mokhtari and Feilberg, {Karen L.}",

note = "Publisher Copyright: {\textcopyright} 2024 The Authors. Magnetic Resonance in Chemistry published by John Wiley & Sons Ltd.",

year = "2024",

doi = "10.1002/mrc.5453",

language = "English",

journal = "Magnetic Resonance in Chemistry",

issn = "0749-1581",

publisher = "JohnWiley & Sons Ltd.",

}

Afrough, A, Mokhtari, R 2024, 'Simple MATLAB and Python scripts for multi-exponential analysis', Magnetic Resonance in Chemistry. https://doi.org/10.1002/mrc.5453

Simple MATLAB and Python scripts for multi-exponential analysis. / Afrough, Armin; Mokhtari, Rasoul; Feilberg, Karen L.
In: Magnetic Resonance in Chemistry, 2024.

Research output: Contribution to journalJournal articleResearchpeer-review

TY - JOUR

T1 - Simple MATLAB and Python scripts for multi-exponential analysis

AU - Afrough, Armin

AU - Mokhtari, Rasoul

AU - Feilberg, Karen L.

N1 - Publisher Copyright:© 2024 The Authors. Magnetic Resonance in Chemistry published by John Wiley & Sons Ltd.

PY - 2024

Y1 - 2024

N2 - Multi-exponential decay is prevalent in magnetic resonance spectroscopy, relaxation, and imaging. This paper describes simple MATLAB and Python functions and scripts for regularized multi-exponential analysis methods for 1D and 2D data and example test problems and experiments. Regularized least-squares solutions provide production-quality outputs with robust stopping rules in ~5 and ~20 lines of code for 1D and 2D inversions, respectively. The software provides an open-architecture simple solution for transforming exponential decay data to the distribution of their decay lifetimes. Examples from magnetic resonance relaxation of a complex fluid, a Danish North Sea crude oil, and fluid mixtures in porous materials—brine/crude oil mixture in North Sea reservoir chalk—are presented. Developed codes may be incorporated in other software or directly used by other researchers, in magnetic resonance relaxation, diffusion, and imaging or other physical phenomena that require multi-exponential analysis.

AB - Multi-exponential decay is prevalent in magnetic resonance spectroscopy, relaxation, and imaging. This paper describes simple MATLAB and Python functions and scripts for regularized multi-exponential analysis methods for 1D and 2D data and example test problems and experiments. Regularized least-squares solutions provide production-quality outputs with robust stopping rules in ~5 and ~20 lines of code for 1D and 2D inversions, respectively. The software provides an open-architecture simple solution for transforming exponential decay data to the distribution of their decay lifetimes. Examples from magnetic resonance relaxation of a complex fluid, a Danish North Sea crude oil, and fluid mixtures in porous materials—brine/crude oil mixture in North Sea reservoir chalk—are presented. Developed codes may be incorporated in other software or directly used by other researchers, in magnetic resonance relaxation, diffusion, and imaging or other physical phenomena that require multi-exponential analysis.

KW - 1H

KW - Exponential decay

KW - Inverse problems

KW - Magnetic resonance relaxation

KW - Multi-exponential analysis

KW - NMR

U2 - 10.1002/mrc.5453

DO - 10.1002/mrc.5453

M3 - Journal article

C2 - 38813596

AN - SCOPUS:85194776232

SN - 0749-1581

JO - Magnetic Resonance in Chemistry

JF - Magnetic Resonance in Chemistry

ER -

Afrough A, Mokhtari R, Feilberg KL. Simple MATLAB and Python scripts for multi-exponential analysis. Magnetic Resonance in Chemistry. 2024. doi: 10.1002/mrc.5453

Simple MATLAB and Python scripts for multi-exponential analysis (2025)

FAQs

Is Python faster than MATLAB? ›

Some tasks, such as complex numerical computations, are best suited for MATLAB, while tasks like program development might be more efficient and faster to achieve in Python.

What is one syntax difference you've noticed between MATLAB and Python? ›

Key Differences Between MATLAB and Python

Syntax: MATLAB's syntax is tailored for mathematical computations, resembling mathematical notation, while Python, as a general-purpose language, boasts a more versatile syntax.

Is MATLAB losing to Python? ›

Though Python has continued to showcase its dominance again in the TIOBE Index for April 2022, the highlight of this month's report is something else. MATLAB is almost dropping off from the top 20 for the first time in more than a decade.

Is MATLAB more difficult than Python? ›

The OOP in MATLAB is more advanced and complex, which to some can be more confusing. That being said, MATLAB is generally a more advanced language while Python is more of a beginner's language. Therefore, just because MATLAB may be more complex and confusing at first, with practice, it will become easier to grasp.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 5667

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.