Attempted to access k(1); index out of bounds because numel(

I was trying to replicate the Funke and Paetz 2010 paper . But I keep on getting the following error:
Attempted to access k(1); index out of bounds because numel(k)=0.
Does anyone know what this error relates to?
Thanks in advance.
Attempted to access k(1); index out of bounds because numel(k)=0.
Does anyone know what this error relates to?
Thanks in advance.