create a 256-point zero-mean random noise sample i(x)

조회 수: 2 (최근 30일)
deniz koc
deniz koc 2019년 12월 22일
댓글: Image Analyst 2019년 12월 22일
create a 256-point zero-mean random noise sample i(x)
a )Calculate mean and variance of i(x)
b) Calculate autocorrelation function C(Δ) for i(x). Describe how you did this and any assumptions you made. What is the relationship between C(0) and i(x)?
c) Calculate Wiener spectrum W(u) for i(x). What is the relationship between C(0) and W(u)? How would you convert W(u) to MTF(u)?
I neeed so much help i beg you all

답변 (1개)

Image Analyst
Image Analyst 2019년 12월 22일
Hints:
Set (the poorly-named) i to rand(......).
i = rand(.........................
Then use mean() and var() on i.
For autocorrelation, I'd use conv() with flip() and 'full' option. Note that the x-axis is longer after correlation, so what x represents the first element is different -- your prof should have gone over that.
I don't know if there is a wiener function built in. There is a non-linear one for removing noise of images, wiener2() in the Image Processing Toolbox, but I don't think that is what you need. Review your course notes or check Wikipedia.
Read this link if you still need help.
  댓글 수: 2
deniz koc
deniz koc 2019년 12월 22일
편집: deniz koc 2019년 12월 22일
i need the b and c part . I checked the Wiener function built but I didnt understand so i send the whole question ''maybe white noise rand is diff then other '''
Thanks anyway (Genius-Named)
Image Analyst
Image Analyst 2019년 12월 22일
I told you how I'd do b. Use conv. It's literally one line of code. If I give much more of a hint, then it would no longer be your code, it would be my code and you'd be turning in someone else's code, which is probably against your course's policy. About all I can do it
outputSignal = conv(inputSignal, ...........................);
Surely you can type in the few final characters of fliplr() and 'full'. If not, why not?

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

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by