sym_angle.m

来自「利用电磁场的源激发方法来计算光子晶体波导例如光子晶体光纤」· M 代码 · 共 12 行

M
12
字号
function ang = sym_angle(str)
switch str
        case {'p1', 'p2', 'p7', 'p8'}
                ang = pi/6;
        case {'p3', 'p4', 'p5', 'p6'}
                ang = pi/2;
        case {'f1', 'f2', 'f3', 'f4', 'f5', 'f6'}
                ang = pi/3;
        otherwise
                error('Illegal class type string')
end

⌨️ 快捷键说明

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