xdc_get.m

来自「FIELD II 是B超的matlab仿真程序。 执行 先运行 fie」· M 代码 · 共 47 行

M
47
字号
%  Procedure for getting data for an aperture%%  Calling:  data = xdc_get(Th, info_type); %%  Parameters:  Th   - Pointer to the transducer aperture.    %               info_type - Which information to get (text string). %                      The possibilities are:%                          rect     - information about rectangular elements%                          tri      - information about triangular elements%                          focus    - focus time line%                          apo      - apodization time line%%  Return:    data - data about the aperture%%  Example:  data = xdc_get (Th,'focus');%%     Returns the delay values for this aperture. See the manual for the%     individual values content in the user's guide.%%  Version 1.03, June 29, 1998 by Joergen Arendt Jensenfunction data = xdc_get (Th, info_type)%  Check the type argument  if nargin < 2    info_type = 'rect';    end  if strcmp(info_type, 'rect')    info = 1;  elseif strcmp(info_type, 'tri')    info = 2;  elseif strcmp(info_type, 'focus')    info = 4;  elseif strcmp(info_type, 'apo')    info = 5;  else    info = 1;  end%  Call the C-part of the program to show aperture  data = Mat_field (1101,Th,info);

⌨️ 快捷键说明

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