view examples/@polynomial/end.m @ 14300:d1c45dd1a038 gui

Readded .hgsub.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 31 Jan 2012 21:32:43 +0100
parents 7621f0b0e588
children 446c46af4b42
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