beam_ta.m
来自「hi i have a huge collection are you int」· M 代码 · 共 17 行
M
17 行
function b = beam_ta(psiv,x,psi0,lambda)%BEAM_TA Calculate the beam pattern for a line array.% B = BEAM_TA(PSIV,X,PSI0,LAMBDA) Returns the beam pattern B =% (|G|/|G_max|)^2 at angles defined by the vector PSIV for a line of% hydrophones at locations X. PSI0 is the steering angle and lambda is% the wavelength.% (See Workbook 3, p 40)% A. Knight, July 1995[PSI,X] = meshgrid(psiv,x);i = sqrt(-1);G = sum(exp(i*2*pi*X.*(sin(PSI) - sin(psi0))/lambda));Gmax = max(G);b = (abs(G)/Gmax).^2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?