function addpref(group,pref,value)
%ADDPREF Add preference.
%   ADDPREF(GROUP,PREF,VAL) creates the preference specified by the
%   strings GROUP and PREF and sets its value to 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 add a preference that already exists.
%
%   To add 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',1.0)
%
%   See also GETPREF, SETPREF, RMPREF.

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

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

