Making a horizontal region between two functions
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
How do i fix this, my region is showing on the wrong part of the fuction, but i want it on the other part. can i get help
f = @(x) x.^3;
ivf = @(y) y.^(1/3);
g = @(x)x-x;
ivg = @(y) y-y;
a = 0;
b =1;
fplot(f, [a, b]), hold on
fplot(g, [a, b], 'LineWidth',2)
ycoord = linspace(a, b, 20);
xcoord = [ivf(ycoord); ivg(ycoord)];
plot(xcoord, [ycoord;ycoord]), hold off![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1181668/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1181668/image.png)
thanks
0 comentarios
Ver también
Categorías
Más información sobre Calculus en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!