creating a frame(image), randn
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 13 Okt. 2011
No. Try again. By the way, what do you mean by covariance? Do you mean variance or standard deviation instead?
3 Kommentare
Image Analyst
am 13 Okt. 2011
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!