symbolically differentiating of a function not to be mixed with other constants
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
farzad
am 8 Dez. 2014
Beantwortet: A Jenkins
am 8 Dez. 2014
Hi All
to derivate symbolically this equation :
p= c1*r +c2/r ;
the problem is that when you write : y=sym('y(t)') ;
then you can not define the function , to derivate and see the result , because it will only be like : diff(p(r), r) ;
but if I write the function as above , how can I make matlan know that r is the variable and the rest are just constants ?
0 Kommentare
Akzeptierte Antwort
A Jenkins
am 8 Dez. 2014
syms r c1 c2
p=c1*r+c2/r
diff(p,r)
_________________
ans =
c1 - c2/r^2
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Special Values finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!