Matrices inside matrix operation
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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!
Antworten (1)
David Hill
am 10 Feb. 2020
0 Stimmen
Please attach examples of your matrices; otherwise, it is hard to help.
1 Kommentar
Alan Campos Valdillez
am 10 Feb. 2020
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!