view test/compile-bench/bench-octave/for_sum_1.m @ 32426:8e4f14837db2

maint: ensure that source files end with a single newline character
author John W. Eaton <jwe@octave.org>
date Sat, 21 Oct 2023 20:51:54 -0400
parents 6e6e99e8a4de
children
line wrap: on
line source

function for_sum_1 (mat)
  sum = 0;
  for i = 1:length (mat)
    sum = sum + mat (i);
  end
end