How can i solve the error "Reference to non-existent field 'xShape'. Error in finDiffEvalAndChkErr Error in finitedifferences'"

2 ビュー (過去 30 日間)
hamda CHAGRAOUI
hamda CHAGRAOUI 2020 年 2 月 12 日
コメント済み: Walter Roberson 2020 年 2 月 22 日
c = -1; % define parameter first
x = fsolve(@(x) myfun(x,c),[-5;-5])
function F = myfun(x,c)
F = [ 2*x(1) - x(2) - exp(c*x(1))
-x(1) + 2*x(2) - exp(c*x(2))];
Reference to non-existent field 'xShape'.
Error in finDiffEvalAndChkErr
Error in finitedifferences
Error in trustnleqn (line 107)
[JACfindiff,~,~,numFDfevals,evalOK] = finitedifferences(x,funfcn{3},[],[],[],Fvec,[],[],
...
Error in fsolve (line 367)
trustnleqn(funfcn,x,verbosity,gradflag,options,defaultopt,f,JAC,...
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 22 日
Which release are you using? The code works on my machine.

サインインしてコメントする。

回答 (1 件)

Alex Sha
Alex Sha 2020 年 2 月 13 日
Hi, as my test, if c>0.367879, there is no solution for your equations.

Community Treasure Hunt

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

Start Hunting!

Translated by