how to generate a matrix whose elements are two dimension t random numbers?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
wen
el 14 de Oct. de 2014
Respondida: Mohammad Abouali
el 15 de Oct. de 2014
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
0 comentarios
Respuesta aceptada
Mohammad Abouali
el 15 de Oct. de 2014
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!