how find idx string deleted
1 view (last 30 days)
Show older comments
a={'aa','bb','cc','aa'}
unique(a,'stable')
%i want to find idx string deleted..( idx=4)
0 Comments
Accepted Answer
Fangjun Jiang
on 29 Nov 2023
a={'aa','bb','cc','aa'};
[b,ida,idb]=unique(a,'stable')
setdiff(1:numel(a),ida)
0 Comments
More Answers (0)
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!