How to compare two table?

31 vues (au cours des 30 derniers jours)
fyza affandi
fyza affandi le 27 Nov 2018
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)

Réponse acceptée

madhan ravi
madhan ravi le 27 Nov 2018
Modifié(e) : madhan ravi le 27 Nov 2018
  2 commentaires
fyza affandi
fyza affandi le 27 Nov 2018
a(2,:)=new
How can I rename this table?

Connectez-vous pour commenter.

Plus de réponses (1)

Peter Perkins
Peter Perkins le 27 Nov 2018
See the documentation for ismember. You want 'rows'.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by