Say I have an array with x amount of rows and 3 columns.
I want to count how many times does a specifc value repeat on the first column. So for example I want to know how many times do numbers 5,6,7,8,9 repeat in the first column. If they repeat less than 4 times then I want to delete the entire row where that value is in the first and/or second column to be deleted.
example: 5 has less than 4 combinations then the following rows would be deleted from the array.
5 1 100
2 5 800
5 5 500
1 Comment
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/676713-rows-and-columns-in-array#comment_1181353
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/676713-rows-and-columns-in-array#comment_1181353
Sign in to comment.