removeSetting
Remove setting
Description
removeSetting(
removes a setting called parentgroup
,name
)name
from the specified parent
settings group.
Examples
Remove Setting
Create a settings group and add a new setting to the group. Then, remove the setting.
Use the settings
function to access the root of the
settings tree and then create the settings group
mysettings
.
s = settings;
addGroup(s,'mysettings');
Add the setting MyWorkAddress
to
mysettings
.
addSetting(s.mysettings,'MyWorkAddress','PersonalValue','3 Apple Hill Drive'); s.mysettings.MyWorkAddress
ans = Setting 'mysettings.MyWorkAddress' with properties: ActiveValue: '3 Apple Hill Drive' TemporaryValue: <no value> PersonalValue: '3 Apple Hill Drive' FactoryValue: <no value>
Remove the setting MyWorkAddress
from
mysettings
.
removeSetting(s.mysettings,'MyWorkAddress');
s.mysettings
ans = SettingsGroup 'mysettings' with no properties.
Input Arguments
parentgroup
— Parent settings group
SettingsGroup
object
Parent settings group to remove the setting from, specified as a
SettingsGroup
object. Use the settings
function to access the root settings group object
and all the available settings groups.
name
— Name of setting to remove
character vector | string scalar
Name of the setting to remove, specified as a character vector or string
scalar. If name
does not exist in the specified settings
group, MATLAB® throws an error.
Version History
Introduced in R2019b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)