Watch this Author's files
Very nice and very useful. One comment- I believe the 'if' statement on line 303 should be >=, not > so that if only one option is being set the block will be entered.
Contact us at files@mathworks.com