フィルターのクリア

I want to plot F(x) and G(x) in same graph for x=(-10,10) how can I do this?

2 ビュー (過去 30 日間)
Arkesh Patel
Arkesh Patel 2018 年 2 月 22 日
コメント済み: Roger Stafford 2018 年 2 月 23 日
f(x)=5x^2+9x+2
G(x)=3x+12
  1 件のコメント
James Tursa
James Tursa 2018 年 2 月 22 日
編集済み: James Tursa 2018 年 2 月 22 日
What have you done so far? What specific problems are you having with your code? Do you know how to evaluate polynomials for a vector input? Do you know how to plot?

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

回答 (2 件)

Star Strider
Star Strider 2018 年 2 月 23 日
See the documentation on Anonymous Functions (link) and the linspace (link) function.

Roger Stafford
Roger Stafford 2018 年 2 月 23 日
x = linspace(-10,10);
f = 5*x.^2+9*x+2;
G = 3*x+12;
plot(x,f,'r-',x,G,'g-')
  2 件のコメント
James Tursa
James Tursa 2018 年 2 月 23 日
Roger, this is tagged as homework ...
Roger Stafford
Roger Stafford 2018 年 2 月 23 日
Oops!

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by