fnm_run()
Description: This function is a guided function that does error checking and sanity checks on the input before feeding the information to the C++ binary to get the answer.
Usage
pressure = fnm_run('transducer', transducer, 'cg', cg, 'medium', medium, 'f0', f0, 'tol', tol, 'ndiv',\
ndiv, 'dflag', dflag);
Arguments
- transducer A FOCUS transducer array.
- cg A FOCUS coordinate grid. NOTE: If the provided delta is more than half the wavelength, this function will reset it to that value.
- medium A FOCUS medium.
- tol Maximum difference between one ndiv value and the next. Default is 10 - 10.
- ndiv The number of integral points to use. Default value is calculated based on the provided tolerance.
- f0 The frequency of the array in Hz. Default value is 1 MHz.
- dflag Display flag, 1 = display, 0 = suppress.
Output Parameters
- pressure A 3-d array representing the complex pressure at each point
Notes
All arguments to this function must be preceeded by their
name (e.g. 'f0', f0, 'medium', medium). The arguments can be in any order and they are all optional, however any critical arguments not passed to the function will cause the program to prompt the user to input them.

