How to write multiple rows in a multiple column way without changing the order

 채택된 답변

result = reshape(A.',1,numel(A));

댓글 수: 2

Thnaks. I understand the row to column and numel operation. What is 1 for ? Number of rows ?
Yes, the 1 is the number of rows, and numel(A) is the number of columns. The initial transpose is to get the row elements of the original A to be next to each other in memory so they will appear next to each other after the reshape.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

태그

질문:

2017년 10월 4일

편집:

2017년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by