i2ss.m

来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 37 行

M
37
字号
function[s1,s2]=i2ss(i)%I2SS Convert from i=1:4 notation to (s1,s2) notation.%  %   [S1,S2]=I2SS(I) where I is a number from 1 to 4 returns S1 and S2%   each as +/- 1 according to   %%        1 <==> (+,+)%        2 <==> (-,-)%        3 <==> (+,-)%        4 <==> (-,+)%  %   See also SS2I.%   __________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2002--2006 J.M. Lilly --- type 'help jlab_license' for details           switch i   case 1     s1=1;    s2=1;   case 2     s1=-1;    s2=-1;   case 3    s1=1;    s2=-1;   case 4    s1=-1;    s2=1;  end    

⌨️ 快捷键说明

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