How to solve Implicit plot in analitic equation

9 ビュー (過去 30 日間)
Kasam Syaepduin
Kasam Syaepduin 2016 年 6 月 1 日
コメント済み: Star Strider 2016 年 6 月 1 日
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.

採用された回答

Star Strider
Star Strider 2016 年 6 月 1 日
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 件のコメント
Kasam Syaepduin
Kasam Syaepduin 2016 年 6 月 1 日
編集済み: Kasam Syaepduin 2016 年 6 月 1 日
I am using R2010a
clear all;
clc;
syms A c r x z
A = sym(2);
c = sym(3);
t = sym(5);
z = x-c*t;
Eqn1 = r/(1-r)^((c+1)/(c-1)) == A*exp(-z/(c-1));
r = simplify(r);
fplot(r, [-50 50])
still error. Whether there are other alternatives?
Star Strider
Star Strider 2016 年 6 月 1 日
If the error is in the simplify call, just delete it. The simplify call is not important to the code.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Symbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by