how to flip a function
古いコメントを表示
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

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


