이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
STRREPLIKEREGEXPREP Replace string with another.
This function uses STRREP, but uses the input and output format of REGEXPREP so it can be easily substituted.
S = STRREPLIKEREGEXPREP(STRING,SEARCH,REPLACE) replaces all occurrences of the the search string, SEARCH, in string, STRING, with the string,% REPLACE. The new string is returned. If no matches are found STRREPLIKEREGEXPREP returns STRING unchanged.
If STRING is a cell array of strings, STRREPLIKEREGEXPREP returns a cell array of strings replacing each element of STRING individually.
If SEARCH is a cell array of strings, STRREPLIKEREGEXPREP replaces each element of SEARCH sequentially.
If REPLACE is a cell array of strings, then SEARCH must be a cell array of strings with the same number of elements. STRREPLIKEREGEXPREP will replace each element of SEARCH sequentially with the corresponding element of REPLACE.
Example:
InputStr = {'we the people,','in oder to form','a more perfct'}
SearchStr = {'we','oder','perfct'};
ReplaceStr = {'We','order','perfect'};
StrrepLikeRegexprep(InputStr, SearchStr, ReplaceStr)
returns {'We the people,','in order to form','a more perfect'}
인용 양식
Michael Robbins (2026). StrrepLikeRegexprep (https://kr.mathworks.com/matlabcentral/fileexchange/7766-strreplikeregexprep), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 |
