How Can I convert a 1 by 1 array into multidimensional array?
Mostra commenti meno recenti
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.
Risposte (2)
Star Strider
il 5 Lug 2017
One approach:
a = [1];
a = a*ones(1, 36);
a = reshape(a, [], 4);
Walter Roberson
il 5 Lug 2017
repmat(a, 3, 4, 3)
perhaps
Categorie
Scopri di più su Matrices and Arrays in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!