How can I draw graph of y^2=x^2 * (x+3)?

2 次查看(过去 30 天)

采纳的回答

Sam Chak
Sam Chak 2023-11-18
编辑:Sam Chak 2023-11-18
Hi @Lê
The fimplicit() function can be used.
f = @(x, y) y.^2 - (x.^2).*(x + 3);
fimplicit(f), grid on
xlabel('x'), ylabel('y')
  4 个评论
Sam Chak
Sam Chak 2023-11-18
Hi @Lê
The original question about the implicit plot has been adequately answered. I believe not many students are aware that it involves an implicit function. However, I agree with @John D'Errico's point, and it's fair to inquire about where to find information regarding the integral. Perhaps you didn't use the correct keywords when searching on Google.
There are both symbolic and numerical approaches. Since the problem of finding the area involves a definite integral, I suggest using the integral() command directly. Click on the link to see some examples:
Please share your MATLAB code here, and you will get a sense of achievement.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by