Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Matrices inside matrix operation
조회 수: 1 (최근 30일)
이전 댓글 표시
I am working on a synchronous machine model and need to perform some operations, for example:
a=(omegar*T3-Rs-omegar*T5*inv(Lr)*T4)*is;
b=(omegar*T5*inv(Lr))*lambdar;
c=(T3-T5*inv(Lr)*T4)*dis;
d=(T5*inv(Lr))*dlambdar;
where all the terms involved, except "is","dis","dlambdar" and "lambdar", are matrices.
I am trying to form a 2x1 matrix which contains these terms as follows:
vs=[a+c;b+d];
but an error regarding dimensions appears. I have performed every product individually and the problem is not due to an individual matrix dimension. Thanks in advance for your help!
댓글 수: 0
답변 (1개)
David Hill
2020년 2월 10일
Please attach examples of your matrices; otherwise, it is hard to help.
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!