view test/bug-38565.tst @ 20607:db3286201347 stable

doc: Add explanation of ':' optional input to numel(). * data.cc (Fnumel): Add explanation of ':' optional input.
author Rik <rik@octave.org>
date Wed, 07 Oct 2015 14:52:01 -0700
parents b9e510a1f308
children
line wrap: on
line source

%!function r = f (x)
%!  if (ischar (x))
%!    r = x;
%!  else
%!    error ("expecting character string");
%!  endif
%!endfunction

%!assert (eval ("f 10;"), "10");