retrieving data from excel sheet
Ältere Kommentare anzeigen
how can I search a name in the excel sheet column, the code should return the 0 or 1, or found or not found.
Antworten (1)
Walter Roberson
am 14 Jul. 2020
0 Stimmen
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 Kommentare
abdul rehman
am 14 Jul. 2020
Walter Roberson
am 14 Jul. 2020
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
am 14 Jul. 2020
Walter Roberson
am 14 Jul. 2020
[~, ~, raw] = xlsread('TheFileName.xlsx');
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!