Mercurial > hg > octave-lyh
diff scripts/plot/contourc.m @ 8790:a013ff655ca4
Trivial changes to demos to produce a more pleasant output for octave+gnuplot+aquaterm.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 18 Feb 2009 00:46:24 -0500 |
parents | b93ac0586e4b |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/plot/contourc.m +++ b/scripts/plot/contourc.m @@ -134,8 +134,14 @@ endfunction -%!demo +%!test %! x = 0:2; %! y = x; %! z = x' * y; -%! contourc (x, y, z, 2:3) +%! [c_actual, lev_actual]= contourc (x, y, z, 2:3); +%! c_expected = [2, 1, 1, 2, 2, 3, 1.5, 2; 4, 2, 2, 1, 1, 2, 2, 1.5]; +%! lev_expected = [2 3]; +%! assert (c_actual, c_expected, eps) +%! assert (lev_actual, lev_expected, eps) + +