function p = getpref(group,pref)
%GETPREF Get preference.
%   VAL = GETPREF(GROUP,PREF) returns the value for the preference
%   specified by the strings GROUP and PREF.  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 get a
%   preference that does not exist.
%
%   To retrieve the values of more than one preference for the same
%   GROUP, use a cell array of PREF strings.  In this case VAL will
%   be a cell array as well.
%
%   Preference values are persistent and maintain their values between
%   MATLAB sessions.  Where they are stored is system dependent.
%
%   Example:
%      addpref('mytoolbox','version',1.0)
%      getpref('mytoolbox','version')
% 
%   See also SETPREF, ADDPREF, RMPREF.

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

p = system_dependent('doprefs','getpref',group,pref);

