필터 지우기
필터 지우기

Reshaping matrix

조회 수: 1 (최근 30일)
Muammar
Muammar 2012년 2월 7일
Hi...
I want to ask how to reshape this matrix
A = [ 1 1 1 ; 2 2 2 ; 3 3 3] to be A = [1 1 1 2 2 2 3 3 3]
using index, because I will use around 40 x 40 matrix
Thank you, Muammar

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2012년 2월 7일
out = reshape(A.',1,[])
please read reshape

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by