view examples/@polynomial/end.m @ 13822:38e3bfc4e076

provide default message for waitbar * waitabar.m: If no message is supplied for a new waitbar object, set messge to "Please wait...".
author John W. Eaton <jwe@octave.org>
date Fri, 04 Nov 2011 16:40:07 -0400
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