Problem filtering a table

7 Ansichten (letzte 30 Tage)
Seum Bin Rahman
Seum Bin Rahman am 1 Sep. 2019
Kommentiert: Seum Bin Rahman am 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

Akzeptierte Antwort

madhan ravi
madhan ravi am 1 Sep. 2019
A = raw(strcmp(raw( : ,2),p),:)
% ^

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by