chroma/lexers/testdata/matlab.actual
2025-03-22 20:46:00 +13:00

10 lines
143 B
Text

% a sum function
function p = vector_sum(x)
p = 0;
for k1 = 1:length(x)
p = p + x(k1);
end
end
z = 1:10;
sum_from_1_to_10 = vector_sum(z)