how to create a matrix which is difference (like in sets) of antoher 2 matrix

1 回表示 (過去 30 日間)
IBM watson
IBM watson 2018 年 10 月 21 日
編集済み: madhan ravi 2018 年 10 月 21 日
example: a=[2 3 4] b=[3] How to create matrix C which is: c=[2 4]

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 21 日
編集済み: madhan ravi 2018 年 10 月 21 日
a=[2:4]
b=3
C=a(a~=b)
OR
C = setdiff(a,b)
  2 件のコメント
IBM watson
IBM watson 2018 年 10 月 21 日
thanks!
madhan ravi
madhan ravi 2018 年 10 月 21 日
編集済み: madhan ravi 2018 年 10 月 21 日
If it’s what you are looking for accept the answer so that other people know that got the answer for your question ,else let know what’s required.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by