Plotting 2 functions on the same graph

the following code below doesnt help me plot 2 functions on the same graph. Can someone pls help me?
syms x;
y = (2*x-1)/(x+1);
ezplot(y);
hold on
g = finverse(y);
figure;
ezplot(g)
grid;
hold off

回答 (1 件)

David Hill
David Hill 2021 年 4 月 5 日

1 投票

syms x;
y = (2*x-1)/(x+1);
fplot(y);
hold on
g = finverse(y);
fplot(g)
grid;

カテゴリ

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

質問済み:

2021 年 4 月 5 日

回答済み:

2021 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by