How to get the elements from one vector that aren't in another vector

后端 未结 1 1936
孤独总比滥情好
孤独总比滥情好 2020-12-21 22:14

I know this is simple but am having a hard time finding the right function for this. I have a vector a = [1 2 3 4] and another vector b = [1 2 6 8]

相关标签:
1条回答
  • 2020-12-21 23:00

    did you try with setdiff?

    c = setdiff(a,b)
    
    0 讨论(0)
提交回复
热议问题