Why can't i plot this equation?

조회 수: 3 (최근 30일)
Alexader Svensson
Alexader Svensson 2016년 11월 7일
편집: James Tursa 2016년 11월 7일
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일
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개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by