how to obtain anonymous function after derivative ?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Masoud Nateghi
el 28 de Mzo. de 2020
Respondida: Walter Roberson
el 28 de Mzo. de 2020
Hi,
can we have an anonymous function after we differntiate an anonymous function? for example see blow
f = @(x) x^4+3*x^2;
now I want to have another anonymous function which is derivative of f(x) .
1 comentario
Respuesta aceptada
Walter Roberson
el 28 de Mzo. de 2020
syms x
df = matlabFunction(diff(f(x), x), 'vars', {x})
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!