Hi, I would like to ask if my answer is correct or not, here is the question.
조회 수: 2 (최근 30일)
이전 댓글 표시
Here is my Code
% Graphical method to solve x.^4 + x.^3 - 2*x.^2 +1
x = -5:.1:5;
f = inline('x.^4 + x.^3 - 2*x.^2 +1');
plot(x,f(x))
xlabel('x');ylabel('f(x)')
grid;zoom on
댓글 수: 0
채택된 답변
Salaheddin Hosseinzadeh
2015년 6월 27일
편집: Salaheddin Hosseinzadeh
2015년 6월 27일
Hi,
Looks alright.
You can use xlim, ylim to limit the view and see the zero crossing location better, however assuming that we don't know where is the zero then you can manually zoom to find it or
ylim([-0.2,0.2]); %this helps you see the zero crossing better
Good luck ;)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!