cubesMATLAB SDK

Get data from Marple DB in MATLAB

MATLAB allows for complex custom analysis on data that is stored in Marple DB

Installation

  1. The SDK is currently shipped as a DB.m file, get the latest file in the Marple SDKarrow-up-right Gitlab repository.

  2. Place DB.m in your current directory, or in a directory that is on your MATLAB path so that it's reachable by your scripts.

  3. Create a file config.json in the same directory as the DB.m script. Add the following values:

Usage

mdb.get_data will always return a MATLAB tablearrow-up-right with one column time and one column with the name of the signal requested. The time is always given in nanoseconds, and as a UTC timestamp if the original data was datetimes.

If you want to combine multiple tables, it might require resampling of your signals to be able to combine them into calculations or visualisations. You can use built-in MATLAB functions to do this:

Caching

The MATLAB SDK builds up automatic caching of data that you have used in previous runs of your script. On each run, the SDK will check if it needs the fetch the data from Marple DB or not. This speeds up your scripts a lot if you are doing similar analysis multiple times, or if you are continuously tweaking a script.

The cache files are located at cold/ in your current working directory.

Roadmap

The following features are planned for Q1 2026:

  • Resampling for multiple signals at once

  • Uploading data

  • Easy filtering on file metadata

Future roadmap:

  • Loading multiple parquet files at once (for very large signals)

  • Configuring caching strategy

Last updated