view test/classes/@Snork/end.m @ 28928:ae7ce8358953

maint: Add semicolon to end of all warning() and error() invocations. * integral3.m, ordeig.m, camorbit.m, isosurface.m, profexport.m, bicg.m, cgs.m, gmres.m, pcg.m, __alltohandles__.m, betaincinv.m, gammaincinv.m, native2unicode.m, strsplit.m, compare_plot_demos.m, end.m, parent.m: Add semicolon to end of all warning() and error() invocations.
author Rik <rik@octave.org>
date Wed, 14 Oct 2020 07:58:12 -0700
parents deb0273199a2
children
line wrap: on
line source

function r = end (snk, index_pos, num_indices)

  if (num_indices ~= 1)
    error ('Snork object may only have one index');
  end

  r = length (snk.cack);

end