📄 polarize.m
字号:
function E=polarize(E);
% POLARIZE - assign a polarity to a vector.
% If the first element of the vector is < 0,
% the vector is multiplied by -1.
%
% If a matrix is input, each column is polarized.
%
[r,c]=size(E);
for i=1:c
if E(1,i)<0, E(:,i)=-E(:,i); end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -