Yes, sure, here is a minimal example (with the only difference that the y
data would be the data of my student):
julia> x = collect(1:10);
julia> y = rand(10,1);
julia> using LsqFit
julia> @. model(x, p) = p[1]*exp(-x*p[2])
model (generic function with 1 method)
julia> p0 = rand(2)
2-element Array{Float64,1}:
0.4058105988552596
0.5830419304135694
julia> fit = curve_fit(model, x, y, p0)
ERROR: MethodError: no method matching mul!(::Array{Float64,1}, ::LinearAlgebra.Transpose{Float64,Array{Float64,2}}, ::Array{Float64,2}, ::Bool, ::Bool)
Closest candidates are: