Réponse acceptée

Dyuman Joshi
Dyuman Joshi le 13 Oct 2023

1 vote

Use fplot

2 commentaires

Durga thiyanesh
Durga thiyanesh le 16 Oct 2023
thanks for your answer. i dont know where i put fplot.. can u please explain the code ?
Dyuman Joshi
Dyuman Joshi le 16 Oct 2023
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.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 16 Oct 2023

0 votes

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:

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Produits

Version

R2023b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by