Create a matrix with specif size

3 ビュー (過去 30 日間)
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2020 年 4 月 23 日
コメント済み: Ameer Hamza 2020 年 4 月 23 日
Hi MATLAB community,
I have a array with the size (360x1), I would like to organize into a matrix with sizes (30 rows and 12 columns) using the data available on the array, organize sequencially. Which the function I can use for made this?
Thank you very much
Guilherme

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 23 日
編集済み: Ameer Hamza 2020 年 4 月 23 日
See reshape()
B = reshape(A, 30, 12); % A is 360x1 and B is 30x12
It will organize the data column-wise, i.e., fill the first column, then second, and so on.
  2 件のコメント
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2020 年 4 月 23 日
Thank you very much to help!
I am very grateful,
Guilherme
Ameer Hamza
Ameer Hamza 2020 年 4 月 23 日
I am glad to be of help.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by