view examples/@polynomial/end.m @ 10751:717ba2c3eef1

rewrite cell2struct, 1 failing test
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 25 Jun 2010 08:45:22 +0200
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