As follow your comment, I put an argument as an array having 4 elements.
But it doesn’t work with the error as follows: MethodError: no method matching isinf(::Array{Float64, 3}).
Cite: How to use the array as the argument for curve-fit?
Is there a way to solve this problem?