How to solve Implicit plot in analitic equation
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kasam Syaepduin
am 1 Jun. 2016
Kommentiert: Star Strider
am 1 Jun. 2016
Dear Friends,
Let implicit equation
r/(1-r)^((c+1)/(c-1))=A*exp(-z/(c-1))
with z=x-c*t, A, c, t is known and x in the form of a matrix
let x = [-50:dx:50]
How to plot (x,r)?
Please help me. Thanks.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 1 Jun. 2016
Try this:
syms A c r x z
A = sym(2); % Substitute Correct Values
c = sym(3); % Substitute Correct Values
t = sym(5); % Substitute Correct Values
Eqn1 = r/(1-r)^((c+1)/(c-1)) == A*exp(-z/(c-1));
z = x-c*t;
r = simplify(solve(subs(Eqn1), r), 'steps',10);
figure(1)
fplot(r, [-50 50])
4 Kommentare
Star Strider
am 1 Jun. 2016
If the error is in the simplify call, just delete it. The simplify call is not important to the code.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Symbolic Math 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!