how to create a matrix which is difference (like in sets) of antoher 2 matrix
1 回表示 (過去 30 日間)
古いコメントを表示
example: a=[2 3 4] b=[3] How to create matrix C which is: c=[2 4]
0 件のコメント
採用された回答
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 件のコメント
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 Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!