2D plot for polynomial
Ältere Kommentare anzeigen
How to draw a 2d ploy for polynomial. for example: 6x^5+5x^4
Akzeptierte Antwort
Weitere Antworten (1)
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 Kommentar
Durga thiyanesh
am 17 Okt. 2023
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

