what does this error mean? Error using snr Expected input number 2, Fs, to be a scalar.

16 views (last 30 days)
Faria Armin
Faria Armin on 4 Dec 2021
Answered: Benjamin on 4 Dec 2021
Error using snr
Expected input number 2, Fs, to be a scalar.

Answers (1)

Benjamin
Benjamin on 4 Dec 2021
This error means that the second input argument to the function snr is interpreted by MATLAB - based on how your code calls snr - to be the sampling rate Fs, and the sampling rate is expected to be a scalar, but your code has supplied a non-scalar second input argument.
If you share how your code calls snr, I can maybe be more specific on how you can avoid this error.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!