필터 지우기
필터 지우기

How to search and pull specific rows from csv based on input window response

조회 수: 1 (최근 30일)
new2matlab
new2matlab 2019년 10월 25일
답변: Sahithi Kanumarlapudi 2019년 10월 29일
I have an input window that prompts the user to list ID names from a .csv in hopes of somehow using the input to then call only the listed rows to run through a function.
Is there a way to use the inputs to search through a csv file, capture the rows containing said information/keywords, and only run those rows through a function? Alternatively, all other unnecessary rows can just be deleted and I'll know how to run it from there. Not sure which simpler.
Thanks!

답변 (1개)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 10월 29일
readtable()’ could be used to read the entire data from the .csv file to a table. You can then use the user input to scan the table and get the required rows.
Refer to a similar question here.
For more information on read table refer to the following link

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by