Breaking up a long variable into more rows and less columns

1 次查看(过去 30 天)
After running some calculations I get a variable of 1x18144 values. Is there anyway I can break them up into 144 rows so each row will have 126 values.
So that values 1 till 126 take row 1 and values 127 till 254 takes row 2 and so on. Thanks!

采纳的回答

Andrei Bobrov
Andrei Bobrov 2013-12-28
out = reshape(1:18144,126,[])';

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by