Info

This question is closed. Reopen it to edit or answer.

Creating a horizotal region

2 views (last 30 days)
Ibraheem
Ibraheem on 3 Nov 2022
Closed: Cris LaPierre on 4 Nov 2022
I don't really understand how to create a horizontal region between two functions in a graph.
I did this to get the vertical region can you please help to get the horzontal region
f = @(x) x.^3;
g = @(x) x-x;
fplot(f, [-3, 3]), hold on
fplot(g, [-3, 3], 'LineWidth',2)
x1 = 0;
x3 = 1;
xcoord = linspace(x1, x3, 100);
ycoord = [f(xcoord); g(xcoord)];
plot([xcoord;xcoord], ycoord),
plot(xline(1))
hold off
It would be nice if you could use a function of y instead of x (f(x) x^3 = f(y) y^1/3)
I am trying to get the region bounded by y = and y- 1 and x = y^1/3 and x =1 in type 1 and type 2 region (calculus)
Thanks.

Answers (0)

Community Treasure Hunt

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

Start Hunting!