Transform or eliminate states of mechss object
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Luuk Poort
am 30 Sep. 2021
Kommentiert: Luuk Poort
am 5 Okt. 2021
Dear MATLAB community,
I have a mechss object and I want to fix several states by removing these columns and rows from the system matrices.
However, I encounter the issue that I cannot change the system matrices one by one as this violates the constraints that the system matrix dimensions should coincide.
For first order systems, this issue is circumvented by using the modred function, but this is not applicable to mechss objects.
Can I eliminate states of the system matrices, without having to redefine to redefine the mechss object?
Thank you!
0 Kommentare
Akzeptierte Antwort
Paul
am 5 Okt. 2021
Even garden variety ss objects can't have the system matrices changed one by one
sys = rss(4,2,2) % model with four states, two inputs, two outputs
% sys.a = sys.a(1:3,1:3); % attempt to eliminate the fourth state from A, results in an error
Instead, use set to eliminate the fourth state by changing all the matrices at once:
set(sys,'a',sys.a(1:3,1:3),'b',sys.b(1:3,:),'c',sys.c(:,1:3));
sys
Maybe a similar approach will work for a mechss object.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Order Reduction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!