I currently have two single-field Matlab structs that list image names. I would like to combine them into a single struct with no duplicates - i.e.
a(1).img = 'aa.jpg'
a(2).img = 'bb.jpg'
b(1).img = 'bb.jpg'
b(2).img = 'cc.jpg'
I would like for ab to have value(s):
ab(1) = 'aa.jpg'
ab(2) = 'bb.jpg'
ab(3) = 'cc.jpg'
Is there a non=brute force way of doing this?