create a 3x3 cell array with random numbers
Afficher commentaires plus anciens
hi, i have the follow variable mx = {randi(50,600,1); randi(360,60,1); randi(50,60,1)} this is a 3x1 cell array. I want to create a 3x3 cell array with random numbers. how can i do that?
thanks
Réponse acceptée
Plus de réponses (1)
Sean de Wolski
le 2 Déc 2014
num2cell(rand(3))
Catégories
En savoir plus sur Multidimensional Arrays dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!