str2struct

버전 1.0.0.2 (2.67 KB) 작성자: Emmanuel Farhi
Create a structure from a string
다운로드 수: 69
업데이트 날짜: 2019/2/5

라이선스 보기

This function creates a structure from string containing <name> <value> pairs.
Structure member must be separated by ';' or end-of-lines.
The member assignation can be specified with spaces, '=' and ':'

input arguments:
string: string from which the structure should be extracted. It can
also be a file name, which is then read.

output variables:
s: structure which contains the named values

example:
>> str=str2struct('Temperature: 200; RV=3; comment something nice');
str =
Temperature: 200
RV: 3
comment: 'something nice'

인용 양식

Emmanuel Farhi (2026). str2struct (https://kr.mathworks.com/matlabcentral/fileexchange/59176-str2struct), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
태그 태그 추가
버전 게시됨 릴리스 정보
1.0.0.2

updated m-file

1.0.0.1

return unmodified input when not convertible.

1.0.0.0