calc_peak_error()
Description: Calculates the peak error for the B-mode data compared to the reference data.
Usage
error = calc_peak_error(ref, comp, fsref, fscomp, debug);
Arguments
- ref The reference B-mode data.
- comp The B-mode data of the compared data.
- fsref Frequency used to generate the reference data.
- fscomp Frequency used to generate the compared data.
- debug Optional, set debug=1 to plot the reference, compared, and 10x difference for each line.
Output Parameters
- Error The peak error of the B-mode data of the compared signal to the reference signal.
Notes
This function will ONLY works well if GCD(fsref,fscomp) = MIN(fsref,fscomp)

