Hi I have the following code, where I am trying to solve for the variable "Z", with all other variables having assigned values;
Fc = [80]
k = [0.01]
r1 = [0.2835]
r2 = [0.2201]
Cz = [0.0148]
syms Z
eqn = (Fc * [ (((r1+r2)/k)*exp(r1-r2)*Z) / (((r1/r2)*exp(r1)*Z) - ((r2/r1)*exp(-r2)*Z)) ])-Cz
eqn=solve(eqn,Z,'IgnoreAnalyticConstraints',1)
However, it seems that MATLAB cannot find an explicit solution. It returns a an "empty 0-1 sym". I fear that it may not have a solution, but I am unsure on how to continue to test the problem, perhaps with "fsolve, fzero, or vpasolve".

 採用された回答

Torsten
Torsten 2017 年 4 月 5 日

0 投票

Plot the function and see whether it behaves as expected.
Then try "fzero" to solve for Z.
Best wishes
Torsten.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2017 年 4 月 4 日

回答済み:

2017 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by