Mercurial > octave-nkf
view examples/code/@polynomial/end.m @ 19630:0e1f5a750d00
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:24:46 -0500 |
parents | examples/@polynomial/end.m@446c46af4b42 examples/@polynomial/end.m@c8240a60dd01 |
children |
line wrap: on
line source
function r = end (obj, index_pos, num_indices) if (num_indices != 1) error ("polynomial object may only have one index") endif r = length (obj.poly) - 1; endfunction