フィルターのクリア

retrieving data from excel sheet

1 回表示 (過去 30 日間)
abdul rehman
abdul rehman 2020 年 7 月 14 日
コメント済み: Walter Roberson 2020 年 7 月 14 日
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
Walter Roberson 2020 年 7 月 14 日
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
abdul rehman 2020 年 7 月 14 日
Actually, Sorry i am unable to clearify you. The issue is that the is stored in excel file is showing as NaN means noting or empty cell, when i retrive using xlsread or readtalbe.
Walter Roberson
Walter Roberson 2020 年 7 月 14 日
[~, ~, raw] = xlsread('TheFileName.xlsx');

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by