You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: eulerMethod.m
    path of file: ./repos/Numerical-Methods-with-Applications/NumericalIntegration
    
    the code of the file until where you have to start completion: function [xApprox,yApprox]=eulerMethod(f,init,n,h)
% The eulerMethod function takes four arguments
% f is a function handle
% init = x0 is the initial value
% h is the step size and 
% n is the number of steps to estimate
% 
% The function returns an (n+1)x2 matrix of 
% estimated (xi,yi) values


    
function [xApprox,yApprox]=eulerMethod(f,init,n,h)
% The eulerMethod function takes four arguments
% f is a function handle
% init = x0 is the initial value
% h is the step size and 
% n is the number of steps to estimate
% 
% The function returns an (n+1)x2 matrix of 
% estimated (xi,yi) values

% Initialize the output with the initial value
% Initialize the output with the initial value
xApprox = nan(n+1,1);
yApprox = nan(n+1,1);
xApprox(1) = init;
yApprox(1) = f(init);

% Fill in the details of the implementation here

end