Borrar filtros
Borrar filtros

How to compare two table?

37 visualizaciones (últimos 30 días)
fyza affandi
fyza affandi el 27 de Nov. de 2018
Respondida: Peter Perkins el 27 de Nov. de 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)

Respuesta aceptada

madhan ravi
madhan ravi el 27 de Nov. de 2018
Editada: madhan ravi el 27 de Nov. de 2018

Más respuestas (1)

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

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by