指标计算中, 算不出来的情况下, 指标要给缺省值. 不可以填nan
缺省值如下:
classdef FeStatus<doubleproperties(Constant)UNKNOW_REASON = -0.1111 % 未知原因, try catch捕捉WAVE_TIMEOUT = -0.2222 % 读波形超时WAVE_MISS = -0.3333 % 缺波形ADRPM_TIMEOUT = -0.4444 % 读ADRPM超时ADRPM_MISS = -0.5555 % 缺ADRPMMISS_DUE_TO_RESAMPLE = -0.6666 % 因为对齐测点重采样缺指标ERROR_SIGNAL = -0.7777 % 误信号FE_CAL_BREAK = -0.8888 % 指标计算提前终止,为输入数据有, 但不符合规范提前停止.STOP_EVENT = -0.9999 % 停机OK = 0 % OKBYPASS = 0 % 跳过未计算.endmethods(Static)function festatus=combine_errors(errors)% input: errors. list of FeStatusfestatus=max(errors(errors~=0));endendend
