how can i solve the error in thi code

조회 수: 1 (최근 30일)
Nimrod Paul
Nimrod Paul 2020년 3월 6일
댓글: darova 2020년 3월 6일
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
Nimrod Paul
Nimrod Paul 2020년 3월 6일
function [p] = utility_UE(w)
global p_old R
R = 200;
p = sum(w)./R;
end
darova
darova 2020년 3월 6일
Do you see anything strange?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by