Problem filtering a table

조회 수: 7 (최근 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),:)
% ^

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by