retrieving data from excel sheet
이전 댓글 표시
how can I search a name in the excel sheet column, the code should return the 0 or 1, or found or not found.
답변 (1개)
Walter Roberson
2020년 7월 14일
0 개 추천
readtable() the needed columns. ismember() the desired name with the table column variable as the second parameter.
Note: if you are doing that "distance between cities" exercise then you will have more work than I described above, because of the header line
댓글 수: 4
abdul rehman
2020년 7월 14일
Walter Roberson
2020년 7월 14일
if you are doing the distance assignment then xlsread and take the third output.
Note that for that assignment you need to know where the match is, not just whether there is a match.
abdul rehman
2020년 7월 14일
Walter Roberson
2020년 7월 14일
[~, ~, raw] = xlsread('TheFileName.xlsx');
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!