matlab function file code example
Example: declaring a function in matlab
%%%% general syntax %%%%%%%%%%%%%
function [return parameters] = name_of_function(attributes)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
body_of_the_function
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end