フィルターのクリア

Problem filtering a table

1 回表示 (過去 30 日間)
Seum Bin Rahman
Seum Bin Rahman 2019 年 9 月 1 日
コメント済み: Seum Bin Rahman 2019 年 9 月 1 日
I am trying to filter a table using the following code
raw=readtable("small.xlsx");
p='WSMS, Ashulia';
%loop
A = raw(strcmp(raw( : ,2),p))
but getting the following error.
Subscripting a table using linear indexing (one subscript) or multidimensional indexing (three or more
subscripts) is not supported. Use a row subscript and a variable subscript.
Can anyone correct me please

採用された回答

madhan ravi
madhan ravi 2019 年 9 月 1 日
A = raw(strcmp(raw( : ,2),p),:)
% ^
  1 件のコメント
Seum Bin Rahman
Seum Bin Rahman 2019 年 9 月 1 日
Thanks sir

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by