derivative in Matlab-Symbolic Toolbox

1 visualización (últimos 30 días)
Rasto
Rasto el 18 de Feb. de 2013
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.

Respuestas (2)

Wayne King
Wayne King el 18 de Feb. de 2013
Editada: Wayne King el 18 de Feb. de 2013
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)

Rasto
Rasto el 18 de Feb. de 2013
Thank you very much.
And there is another program that displays the derived member?
I ask because I would like to get the following matrix.
see

Community Treasure Hunt

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

Start Hunting!

Translated by