Plot graph of polynomials
조회 수: 2 (최근 30일)
이전 댓글 표시
Yash Raj Sitaram Prasad
2021년 9월 9일
답변: Yash Raj Sitaram Prasad
2021년 9월 10일
I want to plot graph of polynomial function such as |x| and many more like this.
댓글 수: 0
채택된 답변
John D'Errico
2021년 9월 9일
That is not a polynomial.
You have a sqrt root in there. And an absolute value. So learn how to use functions like abs, and sqrt. You will not learn unless you try.
help abs
help sqrt
First, you would you need to create such a function.
F = @(x) sqrt(abs(x));
Then to plot a function like that, you might read about fplot.
help fplot
So you might do this.
fplot(F)
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!