Running built in function tests

I am trying to debug a problem in the control pkg. In stepping through the problem , I wanted to test mtimes code so I did:

test mtimes
I got

test mtimes
??? mtimes is a built-in function

It has a test section, that I want to run, but I don’t know how??

If you look through the control package for mtimes you’ll find @lti/mtimes.m and @tfpoly/mtimes.m. You can then do

test @lti/mtimes

test @tfpoly/mtimes

For me on control 3.4.0 the first passes 1 of 1 test and the second has no test.

1 Like

thanks. I should have known that.