changing variables in syms

1 visualización (últimos 30 días)
Franco
Franco el 12 de Oct. de 2011
If I am working in syms and I say
c= I * (a * I + b * J)
How do I tell matlab that I want I * J = 0 so that it outputs
c = I * (a * I)?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 12 de Oct. de 2011
subs(c,'J',0)
since J or I has to be zero in the substitution and you want I retained.
  4 comentarios
Walter Roberson
Walter Roberson el 12 de Oct. de 2011
Franco, I * J does not express dot product. MuPad expresses dot product via the MuPad routine linalg::scalarProduct (which is not exposed at the MATLAB level.)
If you are using the Maple based symbolic engine, then Maple's dot product operator is . (period), as in maple('A . B')
Franco
Franco el 12 de Oct. de 2011
thanks Walter.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by