필터 지우기
필터 지우기

How transform matrix to vector

조회 수: 1 (최근 30일)
Meriem Ben Kalia
Meriem Ben Kalia 2020년 8월 22일
댓글: Meriem Ben Kalia 2020년 8월 22일
hello everyone,
I have matrix with 6*36 elements I want to transform all the elements in vector with 108*1 (108=6*36)
example A=[1 2 3;8 9 7] will be B=[1;2;3;8;9;7 ]
and thank you very much

채택된 답변

KSSV
KSSV 2020년 8월 22일
A = [1 2 3 ; 8 9 7] ;
iwant = A(:)

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by