function setpref(group,pref,value)
%SETPREF Set preference.
%   SETPREF(GROUP,PREF,VAL) sets the preference specified by the strings
%   GROUP and PREF to the value VAL.  The GROUP identifier string should
%   be unique to avoid clashing with the preferences of other toolboxes or
%   products.  It is an error to try to set a preference that does not
%   exist.
%
%   To set more than one preference at the same time, specify PREF as
%   a cell array of strings and VAL as a cell array of values.
%
%   Preference values are persistent and maintain their values between
%   MATLAB sessions.  Where they are stored is system dependent.
%
%   Example:
%      addpref('mytoolbox','version',0.0)
%      setpref('mytoolbox','version',1.0)
%      getpref('mytoolbox','version')
%
%   See also GETPREF, ADDPREF, RMPREF.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.3 $

system_dependent('doprefs','setpref',group,pref,value);

