MATLAB: Do I get an error “Expected signal input to be finite” when using wlanPacketDetect

WLAN Toolbox

I am using the WLAN toolbox to perform a packet recovery procedure on a custom generated waveform. When I try to detect the packet, I receive the following error:
Error using wlanPacketDetect
Expected signal input to be finite.
How can I fix this error?

Best Answer

This error is occurring because the signal that is being passed to wlanPacketDetect contains non-finite value(s).
To resolve the error, ensure that the received signal does not contain any infinite or NaN values before it is passed into wlanPacketDetect. If the signal is being imported into MATLAB (e.g. reading in a text or csv file), NaN or inf values may be introduced if an unexpected value is encountered. Ensure that any data processing takes this possibility into account to avoid the introduction of non-finite values.