Creating a symbolic variable, then using it as a real variable
Mostrar comentarios más antiguos
I need my program to calculate the derivative of a function, and as far as I understand that means I need to make a symbolic variable. How then can I continue to use that variable as a real vector?
This is what I have tried:
syms x
y = input('Please enter a valid function of x')
deriv = diff(y)
syms clear
x = 0:pi/30:pi;
plot(x,y)
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 25 de Oct. de 2012
0 votos
Use matlabFunction()
2 comentarios
Tom
el 25 de Oct. de 2012
Categorías
Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!