For the complete documentation index, see llms.txt. This page is also available as Markdown.

MATLAB SDK

Get data from Marple DB in MATLAB

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

Installation

  1. Get the latest matlab/ folder from the Marple SDK repository (or pin a release tag matlab-v*).

  2. Add that folder to your MATLAB path:

  1. Create config.json in the same directory as DB.m:

  1. Create the client:

You can use MATLAB Online for testing (free tier available).

Usage

get_data returns a MATLAB table with a time column and a column named after the signal. Time is nanoseconds (UTC when the source used datetimes).

Upload a file and wait for import

Use Overwrite=true to replace an existing dataset with the same name. For MATLAB .mat files, create a files stream with Plugin="mat".

Example output from mdb.get_data()

Add signals (custom ingest)

Upload returns after the API accepts completion; the Iceberg commit may still be running, so the signal may not be readable immediately.

Other helpers

  • create_stream(name, ...) — create a stream (Type, Plugin, PluginArgs, …)

  • get_signals(stream_name, dataset_id) — list signals

  • update_metadata(stream_name, dataset_id, metadata) — merge dataset metadata

  • clear_cache() — delete the local parquet cache

  • health() — API health check

See DB.m and matlab/example.m in the repository for the full surface. Version history: matlab/CHANGELOG.md.

Resampling / combining signals

Combine tables with built-in MATLAB functions, for example:

Caching

Downloaded parquet files are cached under, call mdb.clear_cache() to remove the folder

Compatibility (older MATLAB)

MATLAB older than R2023a cannot read ZSTD-compressed Parquet. On first use the SDK downloads a small parquet-transcode helper into matlab/_marplecache/ (Windows x64, macOS ARM, Linux x64). The same helper is used when uploading via add_signal.

Discover the MATLAB SDK in 1 minute

Want to discover more Marple features in 1 minute? Check out other 1 Minute Marple videos

Last updated