Question reposted from: Least square with multi-value function - #3 by Stephen
Take a look at what the input to Com_Langmuir
is. The error is saying that x
is a vector, and you are trying to access the second column.
Do you mean function Com_Langmuir(x, p)
?