Creating sub-matrices using one matrix
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Thomas
il 21 Mar 2014
Modificato: Thomas
il 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..
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!