Filter löschen
Filter löschen

Breaking up a long variable into more rows and less columns

2 Ansichten (letzte 30 Tage)
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!

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 28 Dez. 2013
out = reshape(1:18144,126,[])';

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by