Draw the ezplot for the function 𝑥^ 2 + 6𝑥 + 55
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
WANT A CODE PLS
0 comentarios
Respuestas (2)
KSSV
el 14 de Oct. de 2021
It is very striaght forward and very easy to plot. Just read the documentation. It got example problem with which you can learn to do the presennt problem.
0 comentarios
Image Analyst
el 14 de Oct. de 2021
I never use ezplot() - I just specify the range and other options explicitly. You might try this:
x = linspace(-10, 10, 1000);
y = x .^ 2 + 6 * x + 55;
plot(x, y, 'b-', 'LineWidth', 3);
grid on;
title('y = x .^ 2 + 6 * x + 55', 'FontSize', 20);
xlabel('x', 'FontSize', 20);
ylabel('y', 'FontSize', 20);
ax = gca;
ax.XAxisLocation = 'origin'
ax.YAxisLocation = 'origin'
ylim([0, max(y)])
For additional customization options, see the attached demo.
1 comentario
Image Analyst
el 19 de Oct. de 2021
@Divyansh Harsh, reminder - you got two answers to your question. Please accept one or say why it's not working.
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!