Plotting a function inside a m-file?
2 ビュー (過去 30 日間)
古いコメントを表示
I ran A3.m but it doesn't seem to create a correct plot.
0 件のコメント
採用された回答
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
0 件のコメント
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!