how to flatten a matrix in row major order
1,099 ビュー (過去 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!