How to write a summation term within minimization function such as lsqnonlin?
이전 댓글 표시
I want to minimize the term function S, to find the values of
, that produce the minimal value of S. I will use lsqnonlin function as I will be be curve fitting the data. So,
are model coefficients which I want to estimate. I want to know how shall I use the summation term for defining my function given below.

Shall I use a for loop? Or is there anyother method to define the summation for the function.
댓글 수: 2
Matt J
2021년 3월 23일
Since you have only 1 non-linear unknown, p, consider using fminspleas instead,
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Least Squares에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!