フィルターのクリア

how to generate continuous data symbol (random real number)?

2 ビュー (過去 30 日間)
Chetan Fadnis
Chetan Fadnis 2022 年 11 月 3 日
コメント済み: Walter Roberson 2022 年 11 月 9 日
Consider a symbol s, with zero mean, E{s}=0, variance 1 and amplitude A=2, such that, .
I want to generate a random real number s. Kindly help. Thanks in anticipation.
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 11 月 9 日
(rand()*2-1) * A
would be uniform distribution with mean 0 and in the range -A to +A.
Unfortunately it will not have the right variance, so you will not be able to use uniform random distribution.

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

採用された回答

Pulkit
Pulkit 2022 年 11 月 9 日
Hi,
According to my understanding you want to generate random real numbers s for some distribution with specific mean and variance. . Since the distribution is not mentioned, let us assume that you want to generate random symbols from the Normal Distribution, you can refer to the following link,
Hope this helps!
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 11 月 9 日
Normal distribution cannot generate in a range -- not unless you use a truncated normal distribution.
betarnd can give continuous random numbers within a range and that are non-uniform.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by