フィルターのクリア

Polynomial calculation in matlab

1 回表示 (過去 30 日間)
Michael
Michael 2014 年 10 月 24 日
回答済み: Yu Jiang 2014 年 10 月 24 日
I need some help with making a program that calculates the value for f(x) = 3x^3 + x^2 +4x -6 and then plot f(x) for x from -1 to 1.

回答 (1 件)

Yu Jiang
Yu Jiang 2014 年 10 月 24 日
Take a look at the first example on this webpage
and replace the "sin(x)" in it with your polynomial.
Also, to get the range you want, change
x = 0:pi/100:2*pi;
to, for example
x = 0:1/100:1;

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by