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

8 views (last 30 days)
Error using snr
Expected input number 2, Fs, to be a scalar.

Answers (1)

Voss
Voss 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.

Categories

Find more on Numeric Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!