Contents   Functions      PDF Index |
Purpose
Safe MATLAB preferences handling.
Syntax
sd_pref('set','Group','Pref','val'); % setpref flag=sd_pref('get','Group','Pref'); % getpref i1=sd_pref('is','Group'); % ispref sd_pref('rm','Group','Pref'); % rmpref
Description
MATLAB, and MCR, have known issues of preference file corruption if accessed by several instances at once. To avoid this issue sd_pref implements a safe access strategy using fjlock .
The syntax is equivalent to ususal MATLAB *pref commands, the additional first argument provides the function prefix to be used.