fsolve solver formulation?

6 ビュー (過去 30 日間)
tonton
tonton 2016 年 4 月 27 日
編集済み: tonton 2016 年 5 月 3 日
Is the problem well formulated to solve "nmax" equations with "nmax" unknowns with fsolve?
The equation is the following,
pot(1:nmax) = q./epsx(1:nmax) .* ( -get_n(x(1:nmax)) + Ndx(1:nmax) + get_p(x(1:nmax)) - Nax(1:nmax) ) + val_dxx_vv(1:nmax);
"x" is the initial guess array (1:nmax),
"get_n" and "get_p" are non-linear functions of "x", and the rest are all arrays. As you see this is the same equation, but I need to get a solution for every single "x".
Is this formulation ok with matlab, because the code keeps running indefinitely without returning anything. I also used a "drawnow" instruction to follow "x" as
figure(10)
hold on
plot(position,x)
drawnow
but the same "x" will be returned again and again.

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by