In python to check whether a particular exists inside a list or an array, i can type
element in list
Is there a MATLAB equivalent for the same?

 採用された回答

Birdman
Birdman 2020 年 3 月 31 日

0 投票

exist
command will do. Check its usage:

2 件のコメント

Krishna Desabhotla
Krishna Desabhotla 2020 年 3 月 31 日
編集済み: Krishna Desabhotla 2020 年 3 月 31 日
I'm using this to extract particular data from a table as in my use case is
table = table(table.column in accepted_values)
I should have phrased the question better, thanks for providing the answer
Birdman
Birdman 2020 年 3 月 31 日
You are welcome.

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by