Matlab equivalent of in from python

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?

 采纳的回答

exist
command will do. Check its usage:

2 个评论

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
You are welcome.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by