how to generate a matrix whose elements are two dimension t random numbers?

1 回表示 (過去 30 日間)
wen
wen 2014 年 10 月 14 日
回答済み: Mohammad Abouali 2014 年 10 月 15 日
Hi guys, I 'd like to generate a 100*100 matrix whose elements are points that two dimension t random numbers, like [[1.3157 0.7010],[0.1591 -1.3840]...](100*100)
Thx a lot

採用された回答

Mohammad Abouali
Mohammad Abouali 2014 年 10 月 15 日
You need to either generate rand(100,100,2) or you need to make a cell array of 100x100 where each element is of form [x y]
Or you can make structure array which has two fields of x y
Regular matrix if 100x100 only stores one number per entry

その他の回答 (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