Plotting a function that is equal to 0.

14 ビュー (過去 30 日間)
Michael Good
Michael Good 2013 年 12 月 7 日
回答済み: Walter Roberson 2013 年 12 月 7 日
Hello, I'm doing some QDA and I need to plot a function that looks like the one below but I cannot seem to find a way to do it? Does anyone know how to plot it?
0.651 - 0.728(x_1) - 0.552(x_2) - 0.006(x_1 * x_2) - 0.071(x_1)^2 +.170 (x_2)^2 = 0.
The curve should look like the 2nd to last one from https://onlinecourses.science.psu.edu/stat557/book/export/html/35
Any hint or suggestion is much appreciated

採用された回答

sixwwwwww
sixwwwwww 2013 年 12 月 7 日
One way to plot this equation is using 'ezplot' as follow:
ezplot('0.651 - 0.728 * x - 0.552 * y - 0.006 * x * y - 0.071 * x^2 + .170 * y^2')
See following link for more information about ezplot:

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 12 月 7 日
x_2 = 138/85 + (3/170) * x_1 +/- (1/170) * sqrt(-34494 + 125416 * x_1 + 12079 * x_1^2)

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by