Creating sub-matrices using one matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Let's say I have such a matrix:
A=[1 3;2 4;2 5;0 0;4 5;4 7;0 0;5 6;0 0 ] %I want to divide it into submatrices limiting with [0 0]
B=[1 3;2 4;2 5] C=[4 5;4 7] D=[5 6]
Thank you for your time!
0 commentaires
Réponses (1)
Thomas
le 21 Mar 2014
Modifié(e) : Thomas
le 21 Mar 2014
Look at the examples given here http://stackoverflow.com/questions/13091193/how-to-select-a-submatrix-not-in-any-particular-pattern-in-matlab
Time to learn about indexing..
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!