I'm trying to use a for/while loop to pick out elements of an array that only occur once
For example: i want to pick out elements that occur just once in this array A = [2 4 6 7 3 9 0 3 5 7 3 5 2 4]
i want to put those single occurence elements in another say B = [6 0 9]
Im trying to avoid using 'unique' syntax because it doesnt work in real time simulink environment. So im trying to build it from basics while/for loop
Thanks in advance
3 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1147633
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1147633
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1147658
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1147658
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1148508
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/653933-how-to-pick-out-single-occurring-elements-of-an-array#comment_1148508
Sign in to comment.