help: I need to solve the problem of the function "lsqcurvefit" I have an error when I started to run the program
6 views (last 30 days)
Show older comments
Hello,
I have an error in the function "lsqcurvefit" that I have to use, I tried to solve the problem but I don't know what the error is exactly, I have to know that I respect the syntax of the function.?
Thank you for your help
Answers (1)
Cris LaPierre
on 21 Mar 2023
Edited: Cris LaPierre
on 21 Mar 2023
The error message mentions 'dot indexing', which means you have likely forgotten a multiplication symbol in your equation. I found this about halfway through your equation: Kth.x(2)
You probably meant to do elementwise multiplication: Kth.*x(2)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!