フィルターのクリア

How to turn a column vector into a 3D matrix?

6 ビュー (過去 30 日間)
zephyr21
zephyr21 2016 年 6 月 24 日
コメント済み: muhammad komugabe 2017 年 10 月 18 日
I have a 324x1 matrix, and I would like to put it into a 3-D 9x12 matrix of i,j,k with the first numbers in the vector going to the first layer and after that fills up start filling the second layer.

採用された回答

KSSV
KSSV 2016 年 6 月 24 日
A = rand(324,1) ;
M = 9*12 ;
N = 324/M ;
K = reshape(A,[9 12 N]) ;
  1 件のコメント
muhammad komugabe
muhammad komugabe 2017 年 10 月 18 日
amazing. thanx

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by