How to compare two table?

31 次查看(过去 30 天)
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)

采纳的回答

madhan ravi
madhan ravi 2018-11-27
编辑:madhan ravi 2018-11-27

更多回答(1 个)

Peter Perkins
Peter Perkins 2018-11-27
See the documentation for ismember. You want 'rows'.

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by