Delete array element values from another array element values

Hi Everyone,
Suppose I have the following
A = [1 2 3]
and
Z = [1 2 3 4 5 6]
how do I remove the values of A from Z, to get
Z = [4 5 6] in matlab
Regards,Chandradhar Savanth

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 8 日

18 投票

setdiff(Z,A)

1 件のコメント

Chandradhar Savanth
Chandradhar Savanth 2013 年 9 月 9 日
oh its working.. thank you Mr. Azzi Abdelmalek

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Data Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by