Index exceeds matrix dimensions error
1 次查看(过去 30 天)
显示 更早的评论
I am trying to perform optimisation using genetic algorithm and when I start the solver, I get this error => "Index exceeds matrix dimensions"
This is my code
%photon current estimation
function result = PhotonFcn(x)
Iph = x;
Isc = 5.98;
Ki = 0.0035;
Top = 273 + 46;
Trf = 273 + 25;
result = (Isc + Ki(Top - Trf)) - Iph;
end
Please help!
2 个评论
Jan
2017-6-21
@alice: Please post this in the field for answers, such that it can be accepted as solution. Thanks.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Direct Search 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!