SharedData

Shares arbitrary data among MATLAB instances using memory mapped files

You are now following this Submission

SharedData provides a low overhead way to share arbitrary data between MATLAB instances using memory mapped files. Memory mapped files provide a simple way to share data without sockets or data marshalling.

% MATLAB instance - writer
data = [1 2 3];
output = SharedData('vec3', class(data), size(data));
output.data = data;

% MATLAB instance - reader
input = SharedData('vec3', 'double', [1 3]);
data = input.data;

Please consult the help documentation for more info.

Cite As

Florian Enner (2026). SharedData (https://www.mathworks.com/matlabcentral/fileexchange/60691-shareddata), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: SharedTransform

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0