view examples/@polynomial/end.m @ 17489:0ad2f93fd83c

doc: Fix a typo in findobj docstring. * scripts/plot/findobj.m: Use '3' instead of 'D' in findobj example of depth 3.
author Rik <rik@octave.org>
date Wed, 25 Sep 2013 08:13:30 -0700
parents 7621f0b0e588
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