The most important part of the error is probably:
Warning: Function assert has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
Warning: Function isvector has the same name as a MATLAB builtin. We suggest
you rename the function to avoid a potential name conflict.
It sounds like you have somewhere on your matlab path your own assert.m and isvector.m which override the corresponding built-in functions. It's a particularly bad idea to override both and in your particular case, your assert.m takes less inputs than the built-in one, hence why you get
Error using assert
Too many input arguments.
Get rid of, or rename the offending functions and don't use the names of critical built-in functions for your own.
If you don't know where these overrides are:
which assert -all
which isvector -all
anything that is not in matlab toolbox folder probably shouldn't be there.
Best Answer