Main Content

rmpref

Remove custom preference

Description

example

rmpref(group,pref)removes the specified preference in the specified group. Ifprefspecifies multiple preferences,rmprefremoves each one. If a specified preference does not exist, MATLAB®返回一个错误。

rmpref(group)removes the specified group and all the preferences in that group. If the group does not exist, MATLAB returns an error.

Examples

collapse all

Add a preference calledversionto themytoolboxgroup of preferences and then remove it.

addpref('mytoolbox','version','1.0') rmpref('mytoolbox','version')

Input Arguments

collapse all

Custom preference group name, specified as a character vector or a string scalar.

Example:'mytoolbox'

Data Types:char|string

Custom preference name, specified as a character vector, a cell array of character vectors, or a string array.

Example:'version'

Example:{'version','modifieddate','docpath'}

Data Types:char|string

Version History

Introduced before R2006a