Differentiation Equation- result of Derivative
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
vu ngothanh
am 16 Apr. 2015
Kommentiert: vu ngothanh
am 16 Apr. 2015
I have i math like this:
L=5
x=5*L^2 %x=125
I need to have a result of y; y=diff(x)=50
What is the code that I must type to have result y=50; Thanks in advance
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 16 Apr. 2015
Vu, I believe what you are trying to do is this:
syms y(x) % define y as a function of x symbolically
L = 5;
y = 5*x^2; % define the function y
dy = diff(y,x); % compute its derivative
dyL = subs(dy,x,L) % compute the derivative at x = L
You'd need to have access to the Symbolic Math Toolbox to run the code.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!