plot a quadratic equation
조회 수: 79 (최근 30일)
이전 댓글 표시
I am to plot a quadratic equation and see how it looks . This is my code : x=[-1:0.05:3]; f=(3*(x.^2))-(2*x); plot(f) xlim([-3 90]);
when i check online graphs fro this equation mine doesnt exactly match ?
댓글 수: 0
답변 (2개)
Star Strider
2016년 2월 29일
I don’t know what doesn’t ‘exactly match’, but perhaps changing your plot call to:
plot(x,f)
will help.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!