フィルターのクリア

Plotting a function inside a m-file?

1 回表示 (過去 30 日間)
Taha
Taha 2012 年 10 月 10 日
I ran A3.m but it doesn't seem to create a correct plot.

採用された回答

Razvan
Razvan 2012 年 10 月 10 日
Function f2 returns only a number... Probably you want a vector, with one element for each element of x. In this case use
function F = f2(x)
F = 2*(x.^4)-3*(x.^2)+x-7;
end

その他の回答 (1 件)

Taha
Taha 2012 年 10 月 10 日
Thanks! =D

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by