How to compare two table?

조회 수: 67 (최근 30일)
fyza affandi
fyza affandi 2018년 11월 27일
답변: Peter Perkins 2018년 11월 27일
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일
  댓글 수: 2
fyza affandi
fyza affandi 2018년 11월 27일
a(2,:)=new
How can I rename this table?

댓글을 달려면 로그인하십시오.

추가 답변 (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