ARRANGE DATA IN MATLAB
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I make one row of data to multiple row and column in MATLAB?
0 commentaires
Réponses (2)
Star Strider
le 8 Oct 2022
It depends on the result you want —
v = 1:10
vm1 = repmat(v, 10, 1)
vm2 = v(:) * v
Other possibilities also exist.
.
0 commentaires
Image Analyst
le 8 Oct 2022
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, [])
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!