Using FPLOT to plot a multi variable function

14 ビュー (過去 30 日間)
Naveen
Naveen 2014 年 2 月 5 日
Lets say I have function f= (x^3+y^3+z^3). For a constant y and z, I want to plot function 'f' between xmin<x<xmax using fplot. Is this possible?

採用された回答

Walter Roberson
Walter Roberson 2014 年 2 月 6 日
f = @(x,y,z) x^3+y^3+z^3;
ycon = 5;
zcon = .34;
fun = @(x) f(x,ycon,zcon);
xmin = -4;
xmax = 6;
fplot(fun, [xmin, xmax])
  5 件のコメント
Walter Roberson
Walter Roberson 2022 年 4 月 11 日
f = @(x,y,z) x.^3+y.^3+z.^3;
Manuel Ruivo de Oliveira
Manuel Ruivo de Oliveira 2022 年 4 月 11 日
Thanks, that works. I have a related question about plotting a function given as an integral depending on a parameter, but that seems to deserve it's own post so I'll start a new discussion.

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

その他の回答 (2 件)

Naveen
Naveen 2014 年 2 月 6 日
Never mind. I found it
fplot(@(x) f(x,yvalue,zvalue), [xmin xmax])

Pratiksha Shinde
Pratiksha Shinde 2020 年 8 月 7 日
How to find FFT of boost converter Boost converter
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 8 月 8 日
You should ask that in a new Question.

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

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by