# MATLAB: Why do i get “invalid parameter list”

ising2d

The problem…. I need to vary H that goes from 0 to 1 with 1000 points of discretion. Then calculate my moyenne (magnetization median) and plot it in function of H. All parameters are in my code. but it give me an error in the way i write my moyenne equation. See code
function moyenne=M(1-(1/sinh(J/2*kb*T).^4))^1/8;plot(H,M)
H = linspace(0, 1, 1000);moyenne = M(1-(1 ./ sinh(J ./ 2*kb*T).^4)) .^ (1/8);plot(H, moyenne)