How do I plot the derivative of a function?
Ältere Kommentare anzeigen
Already have the derivative 1- (sinx)/(squar(x))-(squar(x))(cos(x)) just don't know how to plot it via code
Antworten (3)
Sulaymon Eshkabilov
am 1 Okt. 2022
Use syms and fplot(), e.g.:
syms x
fplot()
1 Kommentar
Batuhan Yildiz
am 1 Okt. 2022
Sulaymon Eshkabilov
am 1 Okt. 2022
Bearbeitet: Sulaymon Eshkabilov
am 1 Okt. 2022
To plot sin(2*x), e.g.:
syms x
fplot(x, sin(2*x), [-pi, pi]), grid on
xlabel('x'), ylabel('sin(2*x)')
Apply this exercise for your exercise.
1 Kommentar
Batuhan Yildiz
am 1 Okt. 2022
It is very simple, e.g.:
x = [-3, -2.5 -2 -1 0 1 2 3];
y= sin(2*x);
plot(x, y)
Kategorien
Mehr zu Calculus finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

