extract option from option list
In case the option occurs more than one time in the option list the last occurrence is used. If its value does not match type the default is returned.
Syntax
value = get_option(option_list,option,default,type)Input
| option_list | cell array |
| option | option name, string or cell array of alias names |
| default | value returned if the option is not found |
| type | class name or cell array of class names |
Output
| value | option value |