フィルターのクリア

Removing repeating data points

1 回表示 (過去 30 日間)
Matt
Matt 2012 年 11 月 26 日
Ive got two matrices of different sizes; matrix A is smaller than Matrix B
Some of the numbers in Matrix A are in Matrix B i want to remove these, how can i do this?

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2012 年 11 月 26 日
A = randi(10,3)
B = randi(10,5)
A(ismember(A(:),B(:))) = nan

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by