How to compare two table?
Ältere Kommentare anzeigen
a= [ 1 0 0 ; 0 0 0; 1 0 0]
new=[0 0 1] % the row to be replace
a(2,:)=new % replace row 2 in a with new
How can I compare the new table and original table to get the number of row and column of added 1 (in the new table)
Akzeptierte Antwort
Weitere Antworten (1)
Peter Perkins
am 27 Nov. 2018
1 Stimme
See the documentation for ismember. You want 'rows'.
Kategorien
Mehr zu Numeric Types 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!