フィルターのクリア

creating a frame

2 ビュー (過去 30 日間)
PChoppala
PChoppala 2011 年 10 月 14 日
Hi
Want to clarify a simple doubt I have, which was posted earlier, but had not got a reply.
Does
a = randn(20,20)
imshow(a, [ ])
create a frame with 20x20 pixel, size of each pixel being 1x1, the values of the pixels are Gaussian and the intensity(values of the pixels) are gray linear scale?
Does
a = 3*randn(20,20)
imshow(a, [ ])
create a frame with the same specifications, now that the values are Gaussian with a standard deviation of '3'??
Awaiting your advice
Cheers
P

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 10 月 14 日
No, and No.
randn() cannot produce numbers beyond +/- realmax. No fixed finite range of numbers can have a gaussian distribution. A gaussian distribution has an infinite tail, always.
  1 件のコメント
PChoppala
PChoppala 2011 年 10 月 14 日
Well, can you please advise what I should use?
I was assuming randn gives uniformly distributed numbers...to be Gaussian.
Anyway, can you help me to get a frame with the above specifications?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by