How to compare array values that meet condition?

1 回表示 (過去 30 日間)
Dina Maulina
Dina Maulina 2019 年 5 月 27 日
回答済み: KSSV 2019 年 5 月 27 日
Hello, I'm new in Matlab and I want to ask a basic things. I try to compare an array data to loop value.
Let say, I have array
A = [1 2 6 3 9]
and loop condition that include moving and uncertain data, B.
I want to compare a data in loop condition and array elements in A.
If the B data have the same value with A(1), then the compare run to A(2), untill the last element.
I will really appreciate everyone who help me to figure it out.
Thank You,

採用された回答

KSSV
KSSV 2019 年 5 月 27 日
REad about ismember.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by