SharedData
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://ch.mathworks.com/matlabcentral/fileexchange/60691-shareddata), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: SharedTransform
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
