Syms dependent on time vector notation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Tobias
el 12 de Oct. de 2020
Comentada: Tobias
el 12 de Oct. de 2020
Hi!
I want to caculate the partial derivatives of a vector u:
syms A theta(t) phi(t);
u = [A*cos(phi)*theta;sin(phi)*phi];
du = diff(u,t);
Now u and du are converted to 1x1 symfun functions, but I actually want it to be a vector output as well.
I got this output for du:
A*cos(phi(t))*diff(theta(t), t) - A*sin(phi(t))*theta(t)*diff(phi(t), t)
sin(phi(t))*diff(phi(t), t) + cos(phi(t))*phi(t)*diff(phi(t), t)
But I want the output to be in 2x1 vector form. Does someone maybe know how to do this?
Thanks!
0 comentarios
Respuesta aceptada
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!