poster
2019-11-26, 11:00
<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>
More answer... (https://stackoverflow.com/questions/14770613/elements-in-a-set-that-are-not-elements-of-another-set-relative-complement)
<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>
More answer... (https://stackoverflow.com/questions/14770613/elements-in-a-set-that-are-not-elements-of-another-set-relative-complement)