I am trying to flip the last plot so it can fit into the other plots
f = @(x) x.^3;
g = @(x)x;
a = 0;
b =1;
fplot(f, [a, b]), hold on
fplot(g, [a, b], 'LineWidth',2)
xline(2)
ycoord = linspace(a, b, 20);
xcoord = [f(ycoord); g(ycoord)];
plot(xcoord, [ycoord;ycoord]), hold off
^^ this plot

 採用された回答

Bruno Luong
Bruno Luong 2022 年 11 月 4 日

1 投票

f = @(x) x.^3;
ivf = @(y) y.^(1/3);
g = @(x)x;
ivg = @(y) y;
a = 0;
b =1;
fplot(f, [a, b]), hold on
fplot(g, [a, b], 'LineWidth',2)
xline(2)
ycoord = linspace(a, b, 20);
xcoord = [ivf(ycoord); ivg(ycoord)];
plot(xcoord, [ycoord;ycoord]), hold off

1 件のコメント

Ibraheem
Ibraheem 2022 年 11 月 4 日
Can you please also help me with this

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

その他の回答 (0 件)

カテゴリ

質問済み:

2022 年 11 月 4 日

コメント済み:

2022 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by