view test/fcn-handle-derived-resolution/@other/getsize_loop.m @ 13193:a00ff5cedb9b

also look to parent classes for overloaded functions called through handles * ov-fcn-handle.cc (octave_fcn_handle::do_multi_index_op): Look for overloads in parent classes if none are found in the immediate dispatch class. * test/fcn-handle-derived-resolution: New directory for tests. * test/Makefile.am: Include fcn-handle-derived-resolution/module.mk.
author John W. Eaton <jwe@octave.org>
date Thu, 22 Sep 2011 17:08:49 -0400
parents
children
line wrap: on
line source

function r = getsize_loop (x)
  n = numel (x);
  r = zeros (1, n);
  for i = 1:n
    r(i) = numel (x(i).d);
  end
end