asa_run()
This function is deprecated and should not be used. It has been replaced by cw_angular_spectrum.
Description: Identical to asa_call but with more error checking and some sanity checking to ensure a proper calculation will occur.
Usage
Pressure = asa_run('source', p0, 'z0', z0, 'z', z, 'medium', medium, 'nfft', nfft, 'delta', delta, 'type',\
type, 'f0', f0);
Pressure = asa_run();
Arguments
- p0 Matrix of size [nx,ny] describing the intial pressure or velocity field.
- z0 The location of the source pressure plane.
- z Vector describing location of destination planes.
- medium The medium in which this calculation will occur. Default is water; see define_media for more information.
- nfft FFT grid number. Default is 2^2 · length(source).
- delta Spatial sampling interval in meters.
- type Selection for different choices of ASA method; default is 'Pa'.
- 'P' Spectral propagator and
- 'Pa' Spectral propagator
- 'V' Spectral propagator and
- 'Va' Spectral propagator
- 'p' Spatial propagator and
- 'v' Spatial propagator and
- f0 Excitation frequency of the source wave.
Output Parameters
- fftpress matrix of size [ nx ny nz ], calculated pressure.
Notes
This function is called by passing an argument name then the argument value. For example, passing argument delta with a value of 1e-5 would look like asa_run(...,'delta',1e-5,...). This function requires at least the source plane passed. Any missing arguments will cause the program to use the default values or prompt the user for the values to use.
Calling this function with no arguments will cause the program to prompt the user for each required value.

