append sections of column by n rows to subsequent column

4 vues (au cours des 30 derniers jours)
Kevin Mikami
Kevin Mikami le 5 Jan 2021
i have a 1032x1 single column matrix where i need to move every 43 rows to the next column and so on, with the first section to be appended starting at row 44
many thanks,

Réponses (1)

Ameer Hamza
Ameer Hamza le 5 Jan 2021
You can use reshape()
v; % 1032x1 vector
M = reshape(v, 43, [])
  1 commentaire
Kevin Mikami
Kevin Mikami le 5 Jan 2021
Modifié(e) : Kevin Mikami le 5 Jan 2021
ds_ge = tabularTextDatastore(location,'FileExtensions',{'.csv'},'SelectedVariableNames',...
{'Network'});
geData=readall(ds_ge);
rgeData=reshape(geData, 43, [])
Error using tabular/reshape (line 215)
Undefined function 'reshape' for input arguments of type 'table'.
Error in collate_don_test (line 30)
rgeData=reshape(geData, 43, [])

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by