Hello,
I have a matrix A:
123 1970 1 1 12
123 1971 1 1 120
123 1972 1 12 300
240 1970 1 10 40
240 1971 2 1 45
240 1972 3 34 56
230 1970 1 2 120
230 1971 2 3 320
230 1972 1 14 360
I wish to export 3 different matrices in a folder based on the common column element. This might be easy without a loop using an index operation. The resulting matrices
A =
123 1970 1 1 12
123 1971 1 1 120
123 1972 1 12 300
B =
240 1970 1 10 40
240 1971 2 1 45
240 1972 3 34 56
C =
230 1970 1 2 120
230 1971 2 3 320
230 1972 1 14 360
3 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784122
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784122
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784175
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784175
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784179
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/499425-grouping-array-based-on-similar-row-element#comment_784179
Sign in to comment.