how to make a 8x12 matrix into a 96x1 matrix?

조회 수: 1 (최근 30일)
andrew
andrew 2013년 12월 19일
편집: Azzi Abdelmalek 2013년 12월 19일
I have a 8x12 matrix and would like to convert it to a 96x1 matrix how do I do this?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 19일
편집: Azzi Abdelmalek 2013년 12월 19일
A(:)
Example
A=rand(8,12)
B=A(:)
%or
B=reshape(A,96,1)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by