How can I solve each element of an array symbolically?

1 回表示 (過去 30 日間)
Demetri Pananos
Demetri Pananos 2015 年 10 月 9 日
回答済み: Walter Roberson 2015 年 10 月 9 日
I'm trying to find bifurcation points of a dynamical system.
I calculate the Jacobian of my system (which I call JJ), substitute in fixed points and find the eigenvalues (which I call L).
I would like to then solve each element of L, and find the smallest solution. This will give me the bifurcation value.
The solution may return 0, 1, or many solutions. How can I do this efficiently?

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 10 月 9 日
For loop over length(L), index L, solve, sort through the solutions
minsol = inf;
for K = 1 : length(L)
s = solve(L(K));
mins = min(s);
if mins < minsol; minsol = mins; end
end

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by