f=@(x)((1+x.^2-1.5*x.^3+0.5*x.^4)/(1+x.^4));
x=linspace(-25,25);
plot(x,f(x))
grid on

 채택된 답변

James Tursa
James Tursa 2016년 11월 7일
편집: James Tursa 2016년 11월 7일

0 개 추천

Use element-wise divide operator ./ instead of matrix divide operator /
f=@(x)((1+x.^2-1.5*x.^3+0.5*x.^4)./(1+x.^4))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Labels and Styling에 대해 자세히 알아보기

태그

질문:

2016년 11월 7일

편집:

2016년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by