spatially colored and temporaly white noise

조회 수: 6 (최근 30일)
Betha Shirisha
Betha Shirisha 2015년 4월 8일
댓글: Image Analyst 2015년 4월 8일
How to generate spatially colored and temporaly white noise ? i.e if E is the noise of size (5,100) then the coloumns of E are independent and identically distrubuted according to ek ~ N(0,Q) ,where Q is some positive definite matrix and Q is not equal to identity matrix
  댓글 수: 1
Betha Shirisha
Betha Shirisha 2015년 4월 8일
Simply I have to generate noise with distribution E ~ N(0,Q) (normal distribution with zero mean and covarince Q) where Q is positive definite matrix.
Thanks

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2015년 4월 8일
Check out randn() in the help. This generates samples drawn from a normal distribution with specified mean and var:
% Create a vector of 1000 random values drawn from a normal distribution
% with a mean of 500 and a standard deviation of 5.
a = 5;
b = 500;
y = a.*randn(1000,1) + b;
% Calculate the sample mean, standard deviation, and variance.
stats = [mean(y) std(y) var(y)]
  댓글 수: 2
Betha Shirisha
Betha Shirisha 2015년 4월 8일
@Image Analyst thanks... In this case i need to multivariate distribution,variance of noise is a matrix Q which is positive definite
Image Analyst
Image Analyst 2015년 4월 8일
Have you looked at the help yet?
Generate values from a bivariate normal distribution with specified mean vector and covariance matrix.
mu = [1 2];
sigma = [1 0.5; 0.5 2];
R = chol(sigma);
z = repmat(mu,10,1) + randn(10,2)*R

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by