フィルターのクリア

How to compare two table?

35 ビュー (過去 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 Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by