LabMate: a prospectus for types for MATLAB

Conor McBride, Georgi Nakov*, Fredrik Nordvall Forsberg, Andre Videla, Alistair Forbes , Keith Lines

*Corresponding author for this work

Research output: Contribution to journalConference articlepeer-review

Abstract

Many computations in science and engineering are implemented in the programming language MATLAB. However the high-level meaning of such MATLAB programs stays informal, which can lead to implementation errors and bugs, for example relating to incompatible units of measure for quantities, or incompatible sizes of matrices at runtime. We are in the process of developing LabMate, which is a tool for reifying current informal programmer practices into a language of formal comments. These comments are ignored by MATLAB, but acted on and checked by LabMate. We outline the design principles behind LabMate, our current progress, and our future plans.
Original languageEnglish
Article number101460
JournalMeasurement: Sensors
Early online date25 Jan 2025
DOIs
Publication statusE-pub ahead of print - 25 Jan 2025

Funding

This work was undertaken jointly by the Mathematically Structured Programming Group of the University of Strathclyde and the National Physical Laboratory's Data Science department as part of Data Science's Tools for Trustworthiness National Measurement System (NMS) project 2023–2024.

Keywords

  • MATLAB
  • Software correctness
  • Dimensional consistency
  • Type theory

Fingerprint

Dive into the research topics of 'LabMate: a prospectus for types for MATLAB'. Together they form a unique fingerprint.

Cite this