Info
This question is closed. Reopen it to edit or answer.
getting it in a matrix?
1 view (last 30 days)
Show older comments
Say I have 1000 values in a single column, how can I transform them into matrix in which I get first 20 values in first row and next 20 in the next row and so on in 1 column. Like basically 1 column and 50 rows?
0 Comments
Answers (2)
CS Researcher
on 5 May 2016
Let x be the column vector. Try this:
modifiedX = reshape(x,numel(x)/20,20)';
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!