General setup
Say the functions is
function [sum] = sumfunc(data,x1,x2,x3,x4,x5) "Some magic happens here :)" end
Here