MATLAB: Random gaussian noise with zero mean and unity variance gaussian Subscript indices must either be real positive integers or logicals. Error in fffff kk1=kk1(1+(0.1).*array_gaussian_noise); Best Answer You are probably missing a multiplication (or other) operator. Try this: kk1 = kk1.*(1+(0.1).*array_gaussian_noise); Related SolutionsMATLAB: Complex Gaussian noise signals with zero mean and different variance Assuming your signals are not correlated, you could do it withcgnoise = std1*randn(n,1) + i*std2*randn(n,1);where std1 and std2 are the standard deviations.(Edited to correct errors) MATLAB: How can calculate variance mean median for each band in 4 band image DON'T DO THIS:mean2 = mean2(imgband2)mean2() is a built-in function. You should not use it as the name for one of your variables unless you want to have major problems, like you're having. Call it something else. Related QuestionHow can ı generate 100 samples of zero-mean, unit variance gaussian noiseZero-mean Gaussian white-noise process with known power spectral density (PSD)Add gaussian distributed noise with mean and variance to matrixAdding gaussian white noise to dataGaussian Noise and mean filter:Zero mean and one variance
Best Answer