Hello;
h have a matrix with size 66x100 how i change it's size to 1x6600
thanks

 채택된 답변

José-Luis
José-Luis 2016년 9월 27일
편집: José-Luis 2016년 9월 27일

1 개 추천

bla = rand(66,100);
bla = bla(:)';
Please read the documentation on reshape

추가 답변 (1개)

KSSV
KSSV 2016년 9월 27일
편집: KSSV 2016년 9월 27일

0 개 추천

A = rand(66,100) ;
A = A(:) ; % joins column by column
% if you want row by row
A = rand(66,100) ;
A = A' ;
A = A(:) ;

댓글 수: 2

José-Luis
José-Luis 2016년 9월 27일
That would give column vector and not a row vector.
KSSV
KSSV 2016년 9월 28일
Transposing it gives a column vector.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2016년 9월 27일

댓글:

2016년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by