필터 지우기
필터 지우기

changing variables in syms

조회 수: 3 (최근 30일)
Franco
Franco 2011년 10월 12일
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)?

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 10월 12일
subs(c,'J',0)
since J or I has to be zero in the substitution and you want I retained.
  댓글 수: 4
Walter Roberson
Walter Roberson 2011년 10월 12일
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 2011년 10월 12일
thanks Walter.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by