how to define a variable as a function of another variable in symbolic toolbox

19 次查看(过去 30 天)
Hi I am just wondering whether is it possible to do following: define a variable as a function of x
u=f(x)
Then,
d/dx (u*x) = u'x + xu'
u' is first derivative of u w.r.t. x.
Is this possible to do using matlab symbolic toolbox?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-10-5
syms x u
u=cos(x)
y=u*x
out=diff(y,x)
  3 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by