Although modulus_complex is a function, modulus_exact is not a function, so modulus_exact(x(row),t(col)) is attempting to index the scalar symbol modulus_exact . You need
modulus_complex_E(x,t)=sqrt(-15*c*(cosh(sqrt(0.1)*(1/3)*(x-c*t)))^2)
Your code follows that with
modulus_exact=abs(modulus_complex_E)
which will work fine to create a function of x and t.
However, just before the loop you have
which overwrites modulus_exact