how to plot f (x,y) at x=1

3 ビュー (過去 30 日間)
Muhammad Fahim
Muhammad Fahim 2019 年 10 月 14 日
回答済み: Star Strider 2019 年 10 月 14 日
how to plot f (x,y) at x=1 in matlab

採用された回答

Star Strider
Star Strider 2019 年 10 月 14 日
See if this does what you want:
y = ...; % Choose A Vector
fy = f(1,y);
figure
plot(y, fy)
Depending upon how you define the fuction and how you want to plot it, you may need:
x = ones(size(y));
instead of the scalar value of 1.
Then the plot call would be:
figure
plot(y,f(x,y))
or
figure
surf(x,y,f(x,y))
Depending on how you wrote the function.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by