Matlab equivalent of in from python

25 views (last 30 days)
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?

Accepted Answer

Birdman
Birdman on 31 Mar 2020
exist
command will do. Check its usage:
  2 Comments
Krishna Desabhotla
Krishna Desabhotla on 31 Mar 2020
Edited: Krishna Desabhotla on 31 Mar 2020
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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!