Subset a table based on a column and another vector

3 views (last 30 days)
Steven Vits
Steven Vits on 6 May 2021
Edited: Steven Vits on 6 May 2021
So I have a table of values and one of the columns is patient_number. I have another vector of patient numbers I want to get information about from the table.
How do I subset the table based on the second vector that I have? I want the resulting subset to be in the same order of the subseting vector.
Thanks!

Answers (0)

Community Treasure Hunt

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

Start Hunting!