How can I fill the area between these lines and curves?

1 visualización (últimos 30 días)
Uyen
Uyen el 21 de Mayo de 2023
Comentada: Image Analyst el 22 de Mayo de 2023
x=0, x=4, y=sqrt(x), y=2
I have coded like this, but it fill the wrong area
x=0:0.01:4;
y=sqrt(x);
area(x,y)
How can I fill this area correctly?
  1 comentario
Image Analyst
Image Analyst el 21 de Mayo de 2023
Your edit indicates you did not look at the FAQ and even try to adapt your code. Why not?

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 21 de Mayo de 2023
  2 comentarios
Uyen
Uyen el 21 de Mayo de 2023
Movida: Image Analyst el 22 de Mayo de 2023
It works, thank you so much.
Image Analyst
Image Analyst el 22 de Mayo de 2023
Since this Answer solved your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

Iniciar sesión para comentar.

Más respuestas (1)

the cyclist
the cyclist el 21 de Mayo de 2023
You can use the fill function.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by