フィルターのクリア

how to split a column into many equal columns

2 ビュー (過去 30 日間)
nadia nadi
nadia nadi 2016 年 10 月 14 日
回答済み: Image Analyst 2016 年 10 月 14 日
dear
I have a column of say 200x2 and I need to split into four columns of 50x2 to create a matrix size 50x8. I need to write it in general because I have many cases like a column of 1000x2 and so on. can anyone give me an idea.
many thanks,
Nadia,

採用された回答

Image Analyst
Image Analyst 2016 年 10 月 14 日
Try this:
newMatrix = reshape(originalMatrix, [], desiredNumberOfColumns);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by