impulse_response_parfor()
Description: Calculates the impulse response of a transducer array.
Usage
ir = impulse_response_parfor(xdcr_array, coord_grid, medium, time_samples, disp_flag);
Arguments
- xdcr_array A xdcr_array.
- coord_grid A coordinate grid struct like the ones created by set_coord_grid.
- medium A medium struct like the ones created by set_medium.
- time_samples A time sample struct created by set_time_samples.
- disp_flag Display flag, 1 = display, 0 = suppress.
Output Parameters
- ir A 3-d array representing the impulse response at each point in space.
Notes
This function only calculates pressures in lossless media, so any attenuation parameter set by the user will be ignored.
This function uses the MATLAB Parallel Computing Toolkit to
perform the calculation using multiple threads. The speed increase realized by this function is entirely dependent on the number of processor cores present in the computer executing the code. If the Parallel Computing Toolkit is not installed, the function will fail to run.

