# Function: varargin2struct_selected

## CALL:

defaultOptions = varargin2struct(defaultOptions,ValidProps,... PROPERTY1,VALUE1,PROPERTY2,VALUE2,...) defaultOptions = varargin2struct(defaultOptions,ValidProps,... PROPERTY1,VALUE1,OPTSTRUCT,...)

## DESCRIPTION:

Similar to varargin2struct, but ignore invalid parameters

## INPUT:

defaultOptions | any |
    Struct with default values
ValidProps | any |
        Allowable fields (cell array)
    PROPERTY,VALUE:
        Property-Value pairs, and/or
    OPTSTRUCT:      Option structure that stores property value pairs
    +----PROPERTY1=VALUE1
    +----PROPERTY2=VALUE2

## OUTPUT:

Options | any |
    structure identical to defaultOptions, but appriate fields over
    overwritten with property value pairs.