ARRANGE DATA IN MATLAB
Afficher commentaires plus anciens
How can I make one row of data to multiple row and column in MATLAB?
Réponses (2)
It depends on the result you want —
v = 1:10
vm1 = repmat(v, 10, 1)
vm2 = v(:) * v
Other possibilities also exist.
.
Not sure what you mean since it's ambiguous. You probably skipped reading the Community Guidelines. Here, read this:
Star gave one possibility and here is another
data = 1:50 % Make one row of data
% Make into a matrix of 5 rows and 10 columns
M = reshape(data, 5, [])
Catégories
En savoir plus sur Logical 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!