Plotting a function inside a m-file?

 採用された回答

Razvan
Razvan 2012 年 10 月 10 日

0 投票

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 日

0 投票

Thanks! =D

カテゴリ

ヘルプ センター および File ExchangeGraphics Objects についてさらに検索

質問済み:

2012 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by