Creating sub-matrices using one matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Thomas
am 21 Mär. 2014
Bearbeitet: Thomas
am 21 Mär. 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..
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!