creating a frame(image), randn

조회 수: 1 (최근 30일)
PChoppala
PChoppala 2011년 10월 13일
Hi
Does
a = sqrt(3)*randn(20,20)
imshow(a,([ ]))
create a frame(image), with 20x02 pixels, size of each pixel being 1x1, and the values of the pixels representing a Gaussian with covariance '3', and the intensity of each pixel to be gray linear scale.
Thanks
P

채택된 답변

Image Analyst
Image Analyst 2011년 10월 13일
No. Try again. By the way, what do you mean by covariance? Do you mean variance or standard deviation instead?
  댓글 수: 3
Image Analyst
Image Analyst 2011년 10월 13일
Like I said in your duplicate post, perhaps the Example in the help will be a sifficient hint:
Example 1
Generate values from a normal distribution with mean 1 and standard deviation 2:
r = 1 + 2.*randn(100,1);
PChoppala
PChoppala 2011년 10월 15일
Right, thanks!

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by