how to flatten a matrix in row major order
조회 수: 1,066 (최근 30일)
이전 댓글 표시
hi , how do i flatten a matrix in row major order. thanks.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Zhendong Zhao
2015년 8월 16일
B=A'; B(:)'
댓글 수: 1
Walter Roberson
2015년 8월 16일
Using ' instead of .' makes extra work because ' is conjugate transpose. Your code does the conjugate transpose twice so you do end up with the original values, but it is work that doesn't have to be done.
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!