ARRANGE DATA IN MATLAB
Show older comments
How can I make one row of data to multiple row and column in MATLAB?
Answers (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, [])
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!