필터 지우기
필터 지우기

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

조회 수: 9 (최근 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]) ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by