⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cleanss.m

📁 Two scripts are included here. 1. convsys.m - combines the state space representation of two syst
💻 M
字号:
function [temps,Ao,Bo,Co,Do]=cleanss(Ao,Bo,Co,Do)
% Function CLEANSS
%[temps,Ao,Bo,Co,Do]=cleanss(Ao,Bo,Co,Do)
%Cleans state space representation by removing unnecessary and loosely
%coupled state relations. Ao,Bo,Co and Do are the system matrices.

checkcompatibility(Ao,Bo,Co,Do)
clean(Ao);
clean(Bo);
clean(Co);
clean(Do);
temps=minreal(sminreal(ss(Ao,Bo,Co,Do)));
Ao=temps.a;
Bo=temps.b;
Co=temps.c;
Do=temps.d;
clean(Ao);
clean(Bo);
clean(Co);
clean(Do);
function y=clean(y)
y(find(abs(y)<1e-10*max(max(abs(y)))))=0;
return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -