Skip to content

Instantly share code, notes, and snippets.

@robince
Created March 13, 2013 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robince/5152382 to your computer and use it in GitHub Desktop.
Save robince/5152382 to your computer and use it in GitHub Desktop.
clonesharedmemory.m : This function should be modified to load the required data and copy it to shared memory. It will be run once per physical machine.
function clonesharedmemory(shmkey)
% load your data here
x = rand(1000,1000);
sharedmatrix('clone', shmkey, x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment