MATLAB Answers

how can i solve the error in thi code

조회 수: 1(최근 30일)
Nimrod Paul
Nimrod Paul 6 Mar 2020
댓글: darova 6 Mar 2020
Error using fzero (line 246)
FZERO cannot continue because user-supplied function_handle ==> @(x)utility_UE(x,ii,pp) failed with the error below.
Too many input arguments.
Error in take2_algorithm (line 23)
soln(i) = fzero(@(x)utility_UE(x, ii, pp), [.002 2000]);

  댓글 수: 7

표시 이전 댓글 수: 4
darova
darova 6 Mar 2020
Can you show utility_UE?
Nimrod Paul
Nimrod Paul 6 Mar 2020
function [p] = utility_UE(w)
global p_old R
R = 200;
p = sum(w)./R;
end
darova
darova 6 Mar 2020
Do you see anything strange?

로그인 to comment.

답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by