plot a quadratic equation

214 ビュー (過去 30 日間)
Anvinder  Singh
Anvinder Singh 2016 年 2 月 29 日
回答済み: MUSISI 2024 年 4 月 11 日 13:47
I am to plot a quadratic equation and see how it looks . This is my code : x=[-1:0.05:3]; f=(3*(x.^2))-(2*x); plot(f) xlim([-3 90]);
when i check online graphs fro this equation mine doesnt exactly match ?

回答 (2 件)

Star Strider
Star Strider 2016 年 2 月 29 日
I don’t know what doesn’t ‘exactly match’, but perhaps changing your plot call to:
plot(x,f)
will help.

MUSISI
MUSISI 2024 年 4 月 11 日 13:47
x=(1:0.5:10);
f=(x.^2+5*x+6);
plot(x,f);

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by