getting it in a matrix?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 件)
Azzi Abdelmalek
2016 年 5 月 4 日
編集済み: Azzi Abdelmalek
2016 年 5 月 4 日
reshape(A,20,[])'
1 件のコメント
ck
2016 年 5 月 5 日
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!