How do i use fimplicit function for a graph?
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285676/image.png)
How do i do this using fimplicit function? I tried it and a heart comes out in a graph. I would just like to know if there should be and x and y element on this kind of problem? For instance y vs x?
This is what i first did. Do i put elements to recognize the x and y? What should be my independent and dependent variable?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285677/image.png)
1 件のコメント
Walter Roberson
2020 年 4 月 19 日
you used the square root of x squared, but the question requires the cube root of x squared.
回答 (1 件)
madhan ravi
2020 年 4 月 19 日
編集済み: madhan ravi
2020 年 4 月 20 日
(x.^2).^(1/3) % edited after sir Walter’s comment
2 件のコメント
Walter Roberson
2020 年 4 月 20 日
The question does not involve any square roots, only a cube root.
(x.^2).^(1/3)
Or alternately, because we can predict that x^2 will be real-valued and non-negative:
nthroot(x.^2, 3)
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!