ARRANGE DATA IN MATLAB
Mostrar comentarios más antiguos
How can I make one row of data to multiple row and column in MATLAB?
Respuestas (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, [])
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!