derivative in Matlab-Symbolic Toolbox
1 次查看(过去 30 天)
显示 更早的评论
Hello,
How can I get such a derivative in Matlab-Symbolic Toolbox ?
Well as the derived member x '.
y = sin(x)
y´=x´*cos(x)
Thank you for any help.
0 个评论
回答(2 个)
Wayne King
2013-2-18
编辑:Wayne King
2013-2-18
syms x
y = sin(2*pi*x);
diff(y)
% returns
% 2*pi*cos(2*pi*x)
In your example, the derivative of sin(x) with respect to x is not
x*cos(x), it's just cos(x)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!