Rank: 92983 based on 0 downloads (last 30 days) and 0 file submitted
photo

Min

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Min View all
Updated File Comments Rating
21 Dec 2010 sharedmatrix SHAREDMATRIX Allows any Matlab object to be shared between Matlab sessions (w/o using file I/O). Author: Joshua Dillon

As mentioned in previous posts and the included documentation, carefully detaching and free'ing the sharememory keys is essential because any slight sloppiness with managing your shared memory will absolutely punish you and crash Matlab most ungracefully.

That said, this function rocks! My previous multi-core version of my Matlab script shared very large 2D complex arrays by writing and reading ".mat" files. Sure it worked, but I could hear my disk RAID totally getting hammered and a good amount of time spent with file I/O. With the new version, which shares much (but not all) of the information via the sharedmatrix function, I saw my memory usage shrank to about half as much. Pretty cool, really.

Again, there are some particular limitations in its implementation. For instance, attaching a key to something other than a single variable, such as an array of structs or a cell array caused Matlab to crash while trying to detach the key. Even so, I found the function incredibly useful.

16 Dec 2010 sharedmatrix SHAREDMATRIX Allows any Matlab object to be shared between Matlab sessions (w/o using file I/O). Author: Joshua Dillon

Contact us