How Can I convert a 1 by 1 array into multidimensional array?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For example i have
a=[1]
I want to convert it into
a=[1111 1111 1111
1111 1111 1111
1111 1111 1111]
Can anyone please help me here.
0 commentaires
Réponses (2)
Star Strider
le 5 Juil 2017
One approach:
a = [1];
a = a*ones(1, 36);
a = reshape(a, [], 4);
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!