Answering my own:
Apparently you cannot check the fields of a structure in an argument block. You can only do this if the structure is passed to the function as an input of name/value pairs. So all lines after the first are invalid.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!