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 Exchange에서 Graphics 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