i would like to compare two matrixes with different dimension, A and B if any of the element in A is matched with B then that element in A has to be set to zero ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hems
am 29 Aug. 2016
Beantwortet: Fangjun Jiang
am 29 Aug. 2016
A=[1 2 3 2 4 45 32 5] B=[5 6 4 8 2 6 4 8 4 6 98 5 4] then the result marix has to be A=[1 0 3 0 0 45 35 0] I tried with looping but it is slow since my marix set is too big. Please help me out. Thanks in advance
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!