Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

repeating elements and their corresponding

$
0
0
Hi Guys,

I have two vectors X and Y of the same size. Each element in Y has a corresponding element in X. There are some repeating values in X . Is there any way to remove these elements from the vector X and remove their corresponding elements inY.

 e.g if X=[1,2,3,4,4,5,5,6], and Y=[2,5,7,8,9,4,3,6]
So I need

          X=[1,2,3,4,5,6], and Y=[2,5,7,8,4,6]

Thanks,
Ali

Viewing all articles
Browse latest Browse all 19628

Trending Articles