How can i delete cell from cell array?
Afficher commentaires plus anciens
I have two cell array,
W =
1×2 cell array
[1×2 double] [1×2 double]
F =
3×2 cell array
[1×2 double] []
[1×2 double] [1×2 double]
[1×2 double] []
I want to check if cell value in F contains in W, then I will delete the cell value in W
please help me.
4 commentaires
Adam Danz
le 15 Déc 2019
Do you mean if the entire vector in F{n} matches a vector in W or if a single element within F{n} matches any element in W?
Providing a complete example would probably clear that up.
Mira le
le 15 Déc 2019
Image Analyst
le 15 Déc 2019
You might try ismember() with the rows option. Or try a loop comparing W with each row of F with isequal(). Please attach the actual F and W in a .mat file with the paper clip icon.
Réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!