How to copy rows of a matrix to convert it into single row??

 채택된 답변

Star Strider
Star Strider 2016년 4월 6일
Use the reshape function:
A=[1 2; 3 4; 5 6; 7 8];
B = reshape(A', 1, [])
B =
1 2 3 4 5 6 7 8

추가 답변 (0개)

카테고리

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

질문:

2016년 4월 6일

답변:

2016년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by