📄 xdc_focused_multirow.m
字号:
% Procedure for creating a linear, elevation focused array transducer% with an number of rows (1.5D array)%% Calling: Th = xdc_focused_multirow (no_elem_x, width, no_ele_y, heights, kerf_x, kerf_y, % Rfocus, no_sub_x, no_sub_y, focus); %% Parameters: no_elem_x - Number of physical elements in x-direction.% width - Width in x-direction of elements.% no_elem_y - Number of physical elements in y-direction.% heights - Heights of the element rows in the y-direction. % Vector with no_elem_y values.% kerf_x - Width in x-direction between elements.% kerf_y - Gap in y-direction between elements.% Rfocus - Radius of mechanical elevation focus.% no_sub_x - Number of sub-divisions in x-direction of physical elements.% no_sub_y - Number of sub-divisions in y-direction of physical elements.% focus[] - Fixed focus for array (x,y,z). Vector with three elements. %% Return: A handle Th as a pointer to this transducer aperture.%% Version 1.0, June 25, 1998 by Joergen Arendt Jensenfunction Th = xdc_focused_multirow (no_elem_x, width, no_elem_y, heights, kerf_x, kerf_y, Rfocus, no_sub_x, no_sub_y, focus)% Check that all parameters are valid if (no_elem_x<1) error ('Field error: Illegal number of physical transducer elements in x-direction') end if (width<=0) error ('Field error: Width of elements is negativ or zero') end if (no_elem_y<1) error ('Field error: Illegal number of physical transducer elements in y-direction') end for i=1:no_elem_y if (heights(i)<=0) error ('Field error: Height of elements is negativ or zero') end end if (kerf_x<0) error ('Field error: Kerf in x-direction is negativ') end if (kerf_y<0) error ('Field error: Kerf in y-direction is negativ') end if (Rfocus<=0) error ('Field error: Radius of elevation focus is negativ or zero') end if (no_sub_x<1) | (no_sub_y<1) error ('Field error: Number of mathematical elements must 1 or more') end if (min(size(focus))~=1) | (max(size(focus))~=3) error ('Field error: Focus must be a vector with three elements') end% Call the C-part of the program to create aperture Th = Mat_field (1013, no_elem_x, width, no_elem_y, heights, kerf_x, kerf_y, Rfocus, no_sub_x, no_sub_y, focus);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -