% errors = test_struct % % Test whether struct functions behave, and returns the number of errors. % % Sets the global variables test_struct_errors (number of errors) % and test_struct_cnt (number of tests) % % If a workspace variable 'verbose' is set to -1 the output is verbose. % If it is set to 1, output is minimal (error and test counts). % Otherwise, each error is reported with a short message and the error and ... % test counts are displayed at the end of the script (if it is reached). %