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: spbesselhprime.m
    path of file: ./repos/mmc/matlab
    
    the code of the file until where you have to start completion: function hn = spbesselhprime(n, k, z)
%
% hn=spbesselhprime(n,k,z)
%
% spherical Hankel function first order derivative
%
% author: Qianqian Fang (q.fang <at> neu.edu)
%
% input:
%     n: order of the spherical Hankel function
%     k: kind of the Hankel function
%     z: input variable
%
% output:
%     hn: spherical Hankel function first order derivative
%
% example:

    
function hn = spbesselhprime(n, k, z)
%
% hn=spbesselhprime(n,k,z)
%
% spherical Hankel function first order derivative
%
% author: Qianqian Fang (q.fang <at> neu.edu)
%
% input:
%     n: order of the spherical Hankel function
%     k: kind of the Hankel function
%     z: input variable
%
% output:
%     hn: spherical Hankel function first order derivative
%
% example:
%     hn=spbesselhprime(0,1,1)
%
% this file is part of Mesh-based Monte Carlo (MMC)
%
% License: GPLv3, see http://mcx.sf.net/mmc/ for details
%

if (k == 1)
    hn = spbesseljprime(n, z) + i * spbesselyprime(n, z);
elseif (k == 2)
    hn = spbesseljprime(n, z) - i * spbesselyprime(n, z);
else
    error('wrong value for the second parameter');
end