Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
getting it in a matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Azzi Abdelmalek
il 4 Mag 2016
Modificato: Azzi Abdelmalek
il 4 Mag 2016
reshape(A,20,[])'
1 Commento
CS Researcher
il 5 Mag 2016
Let x be the column vector. Try this:
modifiedX = reshape(x,numel(x)/20,20)';
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!