이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
function ind=datasetStrFind(dset,str,vars)
like strfind.m but applies on datasets instead of cell arrays.
The "dataset" type is a matlab type which allows to store data in a similar
way than database tables. Database operations such as join can by applied
(see the function join). However I did not find a function to do a simple
field search on a dataset.
This function allows to look for a substring (str) within observations of
a variable (vars) of a dataset dset. vars can be the variable name or the
column number to search in the dataset.
% % %
example:
names = {'John'; 'Henri';'Enrico'};
ages = [26; 18; 35];
d1 = dataset({names, 'Name'}, {ages, 'Age'})
datasetStrFind(d1,'ri',1)
will return
d1 =
Name Age
'John' 26
'Henri' 18
'Enrico' 35
ans =
2
3
인용 양식
Arnaud Amzallag (2026). strfind for datasets (https://kr.mathworks.com/matlabcentral/fileexchange/24690-strfind-for-datasets), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 준 파일: "contains" with multiple conditions
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 |
