Mercurial > forge
changeset 6694:041ea4439bfb octave-forge
control-oo: add test
author | paramaniac |
---|---|
date | Sat, 13 Feb 2010 16:22:35 +0000 |
parents | 6bc6a08c3f7b |
children | 798a7e1c16cb |
files | extra/control-oo/inst/estim.m |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/control-oo/inst/estim.m Sat Feb 13 14:53:52 2010 +0000 +++ b/extra/control-oo/inst/estim.m Sat Feb 13 16:22:35 2010 +0000 @@ -58,4 +58,13 @@ ## TODO: inname, stname, outname -endfunction \ No newline at end of file +endfunction + + +%!shared m, m_exp +%! sys = ss (-2, 1, 1, 3); +%! est = estim (sys, 5); +%! [a, b, c, d] = ssdata (est); +%! m = [a, b; c, d]; +%! m_exp = [-7, 5; 1, 0; 1, 0]; +%!assert (m, m_exp, 1e-4); \ No newline at end of file