フィルターのクリア

append sections of column by n rows to subsequent column

5 ビュー (過去 30 日間)
Kevin Mikami
Kevin Mikami 2021 年 1 月 5 日
編集済み: Kevin Mikami 2021 年 1 月 5 日
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,

回答 (1 件)

Ameer Hamza
Ameer Hamza 2021 年 1 月 5 日
You can use reshape()
v; % 1032x1 vector
M = reshape(v, 43, [])
  1 件のコメント
Kevin Mikami
Kevin Mikami 2021 年 1 月 5 日
編集済み: Kevin Mikami 2021 年 1 月 5 日
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, [])

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by