Info
此问题已关闭。 请重新打开它进行编辑或回答。
getting it in a matrix?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
CS Researcher
2016-5-5
Let x be the column vector. Try this:
modifiedX = reshape(x,numel(x)/20,20)';
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!