cw_power()
Description: This function is used to calculate the power of a continuous-wave pressure field.
Usage
power = cw_power(pressure, medium);
power = cw_power(transducer, cg, medium, ndiv, f0);
Arguments
- pressure The CW pressure at each point in space in Pa.
- transducer A FOCUS transducer array.
- cg A FOCUS coordinate grid.
- medium A FOCUS medium.
- ndiv The number of integral points to use.
- f0 Frequency of the array in Hz.
Output Parameters
- power The power in W at each point in space given by the formula P = |p|^2α⁄2 ρ c0.

