comparison examples/@polynomial/end.m @ 9288:7621f0b0e588

examples/@polynomial/end.m: Fix end for zero based indexing.
author Robert T. Short <rtshort@ieee.org>
date Tue, 02 Jun 2009 20:56:19 -0700
parents 226f6d001ee2
children 446c46af4b42
comparison
equal deleted inserted replaced
9287:a407e894ec74 9288:7621f0b0e588
2 2
3 if (num_indices != 1) 3 if (num_indices != 1)
4 error ("polynomial object may only have one index") 4 error ("polynomial object may only have one index")
5 endif 5 endif
6 6
7 r = length (obj.poly); 7 r = length (obj.poly) - 1;
8 8
9 endfunction 9 endfunction