How to convert row-major linear indices to column-major indices?
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Preetham Manjunatha
il 23 Mar 2022
Commentato: Preetham Manjunatha
il 24 Mar 2022
I have a row-major linear indices [1,8, 14, 9, 4, 11, 18] from a matrix 3 x 6 (row x column). How to convert this to column-major linear indices [1, 5, 6, 8, 10, 14, 18] without for-loops? I want to generalize for any rectangular or square matrices.
0 Commenti
Risposta accettata
Vedere anche
Categorie
Scopri di più su Troubleshooting Linearization Results in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!