set_default_option edit page

set option in option list if not yet present

Syntax

value = set_default_option(option_list,preserve,option,value) -
value = set_default_option(option_list,preserve,{option1,option2,option3}) -

Input

option_list Cell Array
preserve options to be preserved
option String
value some type

Output

out_list Cell Array

See also

check_option get_option delete_option