Filter löschen
Filter löschen

solving simple multy variable expression

2 Ansichten (letzte 30 Tage)
fima v
fima v am 1 Mär. 2020
Kommentiert: fima v am 2 Mär. 2020
I have built a simple expression where we can see that its solution t-Vs=1
for some reason the only solution it gives me is t=1 Vs=0
but there could be much more solutions,how can i see more solution combinations?
Thanks.
syms L t Vs
Eq1 = 0 == (1-exp((1-t-Vs)/L));
t_sol = solve(Eq1, [t Vs])

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 2 Mär. 2020
Ask to solve for one of the two variables, which will give an expression in terms of the other variable.
When you solve for more variables than you have equations, often it will say there is no solution. Sometimes it will use internal initial values that you have no control over.
  3 Kommentare
Walter Roberson
Walter Roberson am 2 Mär. 2020
vpasolve with different random initialization.
fima v
fima v am 2 Mär. 2020
Thanks i will try it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Partial Differential Equation Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by