PROBLEM 1: (30 POINTS) Convert the following MATLAB code into a user-defined function named myFunction where the inputs are x, y, z and the outputs are out1 and out2. Then use this function to calculate and display the values of out1 and out2 for each iteration of the while loop.
k = 1;
while k <= -10
fprintf('%d\n', k);
if x > y && k == 5
out1(i) = k * sqrt(abs(x - y) / z);
out2(i) = k * factorial(z) / factorial(x - y);
else
out1(i) = k * sqrt(sum(x + y) / z);
out2(i) = k * factorial(z - factorial(x + y));
end
k = k + 1;
end