How to Remove the values that exist in a cell from another cell.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexandros Samp
am 3 Sep. 2016
Kommentiert: Alexandros Samp
am 4 Sep. 2016
For example if i have a Cell F{} with [4 2 3 6 8 7] and another Cell G{} [3 4 6] and i want to remove the values from F that exist in G. So it will be like F{}=[2 8 7].
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 3 Sep. 2016
ii = strfind(Head{4},Hf{3});
Head{4}(bsxfun(@plus,ii(2:end),(0:numel(Hf{3})-1)')) = [];
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!