Optimizing nonlinear functions with size variant input arguments
1 次查看(过去 30 天)
显示 更早的评论
I am trying to use the fminsearch() function to create the optimization and I am getting the following error: "Assignment has more non-singleton rhs dimensions than non-singleton subscripts". Does anyone know what could be causing such an error?
0 个评论
采纳的回答
Walter Roberson
2019-2-22
That error would happen if your objective function returns a non-scalar.
2 个评论
Matt J
2019-2-22
You should Accept-click Walter's answer to certify that it solved your problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!