This example shows how to retain only a subset of modal components from a modal decomposition. In this example you perform modal decomposition and retain the modes with a relative DC contribution of more than 10% by summing those components.
Create a random states-space model with order 10.
rng(0)
G = rss(10,2,2);
Obtain the modal decomposition. Also, obtain the info output argument to store the modal information.
[H,H0,info] = modalsep(G);
size(H)
9x1 array of state-space models.
Each model has 2 outputs, 2 inputs, and between 1 and 2 states.
The decomposition returns nine modal components.
To obtain the subset of modal components with a relative DC contribution of more than 10%, use the DCGain property of the info output argument.
Hsub = H(:,:,(info.DCGain>0.1));
size(Hsub);
4x1 array of state-space models.
Each model has 2 outputs, 2 inputs, and 1 states.
The subset contains four modal components. Obtain the sum of modal components using modalsum.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: United States.
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.