clear; clc; close all
syms x
y1 = 7*x^2 -8*x + 1;
Derivert_y1 = diff(y1);
figure(1)
fplot(x, Derivert_y1)
legend('y1 derivert')
xlabel('X-Verdier')
ylabel('Y-Verdier')
i want to change the increment from -5:1:5 to 0:0.002:2

 Respuesta aceptada

KSSV
KSSV el 30 de Sept. de 2020
Why syms for this?
x = 0:0.002:2 ;
y1 = 7*x.^2 -8*x + 1;
dy1 = 14*x-8 ;
plot(x,dy1)

Más respuestas (1)

Ameer Hamza
Ameer Hamza el 30 de Sept. de 2020
Pass interval as 3rd argument of fplot():
fplot(x, Derivert_y1, [0 2])

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 30 de Sept. de 2020

Respondida:

el 30 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by