Why can't i plot this equation?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!