Creating sub-matrices using one matrix
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Thomas
on 21 Mar 2014
Edited: Thomas
on 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..
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!