# Multi variables in lsqfit

**URL:** <https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210>\
**Category:** Optimization (Mathematical)\
**Tags:** curve-fitting\
**Created:** [March 28, 2024, 5:04am UTC](https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210 "2024-03-28T05:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [March 28, 2024, 5:21am UTC](https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210/2 "2024-03-28T05:21:57Z")

</div>

Question reposted from: [Least square with multi-value function - #3 by Stephen](https://discourse.julialang.org/t/least-square-with-multi-value-function/47943/3)

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)`?

---

_[View the full topic](https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210)._
