![]() |
Elements in a set that are not elements of another set (relative complement) [duplicate]
<div class="question-status question-originals-of-duplicate">
<p>This question already has an answer here:</p> <ul> <li> <a href="/questions/5802276/matlab-arrays-operation" dir="ltr">Matlab arrays operation</a> <span class="question-originals-answer-count"> 3 answers </span> </li> </ul> </div> <p>In <code>matlab</code>, how can I implement the following?</p> <p>Say that I have some set <code>A</code> and another set <code>B</code>, both of which have some elements. How can I write a function that returns only the values of <code>B</code> that are <strong>not</strong> in <code>A</code> (relative complement of A in B <code>B\A</code>?</p> <p>Thanks.</p> [url=https://stackoverflow.com/questions/14770613/elements-in-a-set-that-are-not-elements-of-another-set-relative-complement]More answer...[/url] |
所有时间均为北京时间。现在的时间是 21:21。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.