Ho can I Reshape a matrix?

조회 수: 1 (최근 30일)
Francesco
Francesco 2014년 2월 25일
댓글: Walter Roberson 2014년 2월 25일
I have a DE variable made up by 1xn. It is a row vector. After this I have a col_DE constant that is simply a number. I have to create from DE a matrix that is an made up by col_DE columns and n/col_DE rows. For example If I have a DE=1x56 double variable this new matrix will be made up by the same element of 1x56 (or 1xn in the general case). But if DE is a row vector I would like to obtain an array. I have to obtain a matrix where we need to go over again every col_DE elements. If you do this then we have a 8x7 array.How Can I do?

채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 25일
newDE = reshape(DE, 7, 8) .';
  댓글 수: 4
Francesco
Francesco 2014년 2월 25일
Walter, what's does plain mean? I've never heard this word!
Walter Roberson
Walter Roberson 2014년 2월 25일
"plain" is "ordinary", "unexceptional", "does nothing unusual", "unadorned". In French, ordinaire, pur, simple.
The .' operator only switches the orientation. The . operator switches the orientation and also does complex conjugate.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by