Using xlsread to select non-consecutive rows from excel spreadsheet?
이전 댓글 표시
Hello, I am trying to find out wether it is possible to use xlsread(filename,-1) to select several rows from an excel spreadsheet that are not consecutive? In more detail, from a large spreadsheet, I want to (manually) select all the rows where certain items fulfill certain requirements - but these requirements change everytime I run the program.
For example, once I want to select all rows, where column 5 contains a certain value and column 21 is not empty - those might be rows 84, 319, and 762. An other time, I want to select all rows which contain a value bigger than 1 in column 7, a certain string in column 33, and a different string in column 120. There might be 14 rows left fulfilling those criteria. By using the filtering option in the excel file, I can easily find out which rows I need to select, but the question is: how can I get this information into Matlab?
Since I'm trying to figure this out for quite a while and all the questions and answers didn't give a solution, I really hope someone can help! Thank you in advance!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!