I wrote the following function
% e is n×1 and y is n×1 vectors
function z=e_rand(e,y)
b_LS=regress(e,y)
z=b_LS*5
I saved the function in MATLAB toolbox. But when I run the function I get the following error: input argument "e" is undefined
How can I create the function correctly?