Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
8789:d9bff42fec43 | 8790:a013ff655ca4 |
---|---|
132 lev = vv; | 132 lev = vv; |
133 endif | 133 endif |
134 | 134 |
135 endfunction | 135 endfunction |
136 | 136 |
137 %!demo | 137 %!test |
138 %! x = 0:2; | 138 %! x = 0:2; |
139 %! y = x; | 139 %! y = x; |
140 %! z = x' * y; | 140 %! z = x' * y; |
141 %! contourc (x, y, z, 2:3) | 141 %! [c_actual, lev_actual]= contourc (x, y, z, 2:3); |
142 %! c_expected = [2, 1, 1, 2, 2, 3, 1.5, 2; 4, 2, 2, 1, 1, 2, 2, 1.5]; | |
143 %! lev_expected = [2 3]; | |
144 %! assert (c_actual, c_expected, eps) | |
145 %! assert (lev_actual, lev_expected, eps) | |
146 | |
147 |