how can i draw a graph from this equation:F(n) = x2^3 − 3x1^2 + x3 ?
Can anyone explain?

2 件のコメント

KSSV
KSSV 2020 年 10 月 18 日
Define x2, x1, x3....what should be there range?
andreas kaffas
andreas kaffas 2020 年 10 月 18 日
thank you....there was a problem with the exercise and teachers uploaded another file in which the variables are defined!!

サインインしてコメントする。

回答 (2 件)

madhan ravi
madhan ravi 2020 年 10 月 18 日

1 投票

doc fimplicit3

2 件のコメント

Walter Roberson
Walter Roberson 2020 年 10 月 18 日
This would be suitable if F(n) is some constant, such as if the equation is
andreas kaffas
andreas kaffas 2020 年 10 月 18 日
thank you....there was a problem with the exercise and teachers uploaded another file in which the variables are defined!!

サインインしてコメントする。

Walter Roberson
Walter Roberson 2020 年 10 月 18 日

1 投票

If F(n) is not a constant, then you have the problem that you have three independent variables and one dependent variable. That would require 4 dimensional plots.
The closest you can get to 4 dimensional plots is to use isosurface() or slice() .
For example:
Fn = @(x1, x2, x3) x1.^2 - 2*x2.^3 + 3*x3/5 + 4;
[X1, X2, X3] = meshgrid(linspace(-2,2,25));
Z = Fn(X1, X2, X3);
for level = -13:5:25; isosurface(X1, X2, X3, Z, level); end

1 件のコメント

andreas kaffas
andreas kaffas 2020 年 10 月 18 日
thank you....there was a problem with the exercise and teachers uploaded another file in which the variables are defined!!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeNetworks についてさらに検索

タグ

質問済み:

2020 年 10 月 18 日

コメント済み:

2020 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by