Why does the documentation for the XCOV function in the Signal Processing

R
Ralph · Mar 17, 2021 · 2.2K views
Question
Why does the  documentation for the XCOV function in the  Signal Processing Toolbox 6.8 (R2007b) refer to Gaussian random variables as "Uniform noise with mean = 0.5"? The documentation page for the XCOV function contains the following line of code for the example at the bottom of the page:     ww = randn(1000,1); % Uniform noise with mean = 0.5 The RANDN function is not uniform and has a mean of zero.  
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 25, 2026
This bug has been fixed in Release 2008b (R2008b).
 
This is an error within the documentation for the XCOV function within the Signal Processing Toolbox for previous releases. The documentation should read as follows:
 
ww = randn(1000,1);    % White Gaussian noise

[cov_ww,lags] = xcov(ww,10,'coeff');

stem(lags,cov_ww)
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!