FInding several strings in one string.

버전 1.0.0.0 (1.68 KB) 작성자: Fabian Tomaschek
Functions compares input and search multiple items in two modes.
다운로드 수: 280
업데이트 날짜: 2010/12/31

라이선스 보기

function [antwort,wo] = multistrfind (input, {wassuchen1; wassuchen2; etc..}, mode)

finds multiple "wassuchen" string-inputs, concatenated in a cell-array. each item to be found has to be in one row.
i.e. wassuchen = {'item1';'item2';'item3'}. Item can consist of one or several string signs.

"input" has to be a single, one row string.

in the mode "comp" the functions answers
- 0 if wassuchen-strings do not accord with input,
- 1 if one of the items in wassuchen-string was found in input.
the mode does not show, which item was found!

in the mode "find" the function looks for every item in "wassuchen" and gives out two variables comprising
in "antwort" the elements found and in "wo" where the element was found.
"wo" is a cell array containing double elements,
"antwort" is a cell array containing strings.
one item per row!

인용 양식

Fabian Tomaschek (2024). FInding several strings in one string. (https://www.mathworks.com/matlabcentral/fileexchange/29870-finding-several-strings-in-one-string), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0