How to Remove the values that exist in a cell from another cell.
Ältere Kommentare anzeigen
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].
Akzeptierte Antwort
Weitere Antworten (1)
setdiff(F{1},G{1})
Calculate the difference between to arrays..
3 Kommentare
Alexandros Samp
am 3 Sep. 2016
KSSV
am 3 Sep. 2016
F{1} = setdiff(F{1},G{1})
Alexandros Samp
am 3 Sep. 2016
Kategorien
Mehr zu Cell Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!