Effacer les filtres
Effacer les filtres

Problem filtering a table

1 vue (au cours des 30 derniers jours)
Seum Bin Rahman
Seum Bin Rahman le 1 Sep 2019
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

Réponse acceptée

madhan ravi
madhan ravi le 1 Sep 2019
A = raw(strcmp(raw( : ,2),p),:)
% ^
  1 commentaire
Seum Bin Rahman
Seum Bin Rahman le 1 Sep 2019
Thanks sir

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Identification dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by