sw_col.m
来自「内模控制器(IMC)工具箱。包括参数整定、PID控制器参数转换等」· M 代码 · 共 14 行
M
14 行
function [A]=sw_col(A,T)
% function [A]=sw_col(A,T)
% transforms a cell array or matrix A by
% column switching using transformation matrix T.
% This function was designed to work with function transform.m
% and MSFgainM.m
[m,n]=size(T);
sorx=A;
for i=1:n
temp=find(T(i,:)==1);
sorx(:,i)=A(:,temp);
end
A=sorx;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?