2D plot for polynomial

조회 수: 17 (최근 30일)
Durga thiyanesh
Durga thiyanesh 2023년 10월 13일
댓글: Durga thiyanesh 2023년 10월 17일
How to draw a 2d ploy for polynomial. for example: 6x^5+5x^4

채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 10월 13일
Use fplot
  댓글 수: 2
Durga thiyanesh
Durga thiyanesh 2023년 10월 16일
thanks for your answer. i dont know where i put fplot.. can u please explain the code ?
Dyuman Joshi
Dyuman Joshi 2023년 10월 16일
If you are asking how to use fplot, you should take a look at the link I mentioned.
You can also take a look my comment on your previous question for reference - https://in.mathworks.com/matlabcentral/answers/2032314-3d-plot-for-polynomial#comment_2919399
If you are not asking that, please be more specific.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2023년 10월 16일
That's a 1-D polynomial curve. There is one independent input variable. You can define the range of it with linspace and then use plot
x = linspace(-3, 3, 1000);
y = 6*x.^5 + 5*x.^4;
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
xlabel('x');
ylabel('y');
To learn other fundamental concepts, invest 2 hours of your time here:
  댓글 수: 1
Durga thiyanesh
Durga thiyanesh 2023년 10월 17일
thanks for your answer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by