필터 지우기
필터 지우기

how to reshape a matrix to a vector?

조회 수: 1 (최근 30일)
sama
sama 2018년 5월 21일
답변: sama 2018년 5월 21일
I have a matrix for example [1 2 3; 4 5 6; 7 8 9]. I want to return it to [1 2 3 4 5 6 7 8 9] how can I do that please? Thanks

채택된 답변

Walter Roberson
Walter Roberson 2018년 5월 21일
reshape(A.', 1, [])

추가 답변 (1개)

sama
sama 2018년 5월 21일
Thanks a lot. I used reshape but totally had forgot about transpose ('). Thank you

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by