How to solve this only using looping
Afficher commentaires plus anciens
For example A=(aa bb cc dd) and B=(aa bb xx yy zz) then i want to display like this (xx yy zz)
How to display like that by using looping only...??
Réponse acceptée
Plus de réponses (1)
Bish Erbas
le 24 Sep 2018
Modifié(e) : Bish Erbas
le 24 Sep 2018
One way of accomplishing this would be:
A = [1 2 3 4 8 9];
B = [1 2 3 4 5 6 7];
for k = 1:numel(A)
B(B==A(k))=[];
end
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!