How to get the jacobian of a array function and evaluate it??...

2 ビュー (過去 30 日間)
Alejandro Noriega Soto
Alejandro Noriega Soto 2020 年 9 月 6 日
コメント済み: David Hill 2020 年 9 月 6 日
Hi!, hoping someone could help me, i've trying to write a code for Newton-Rhapson method for nonlinear systems, so, I've declarated a Symbolic function
F= @(x) [x(1).^2+x(2).^2-1,x(1).^2-x(2).^2]
I need to find the jacobian for that array of functions, but jacobian(f,v) only acepts symbolic functions with x and y, but i can't convert the last expresion to a symbolic function with 'x' and 'y' because I need to use 'feval()' later
After that, I need to use 'feval()' in jacobian matrix
Someone could help me please?

回答 (1 件)

David Hill
David Hill 2020 年 9 月 6 日
  4 件のコメント
Alejandro Noriega Soto
Alejandro Noriega Soto 2020 年 9 月 6 日
And if i want to use an array to evaluate it?...
David Hill
David Hill 2020 年 9 月 6 日
Use for-loop
evalArray=[1,2;3,4;5,6];
for k=1:size(evalArray,1)
x=evalArray(k,1);
y=evalArray(k,2);
Jeval(k)=subs(j);
end

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by