str2struct

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://jp.mathworks.com/matlabcentral/fileexchange/59176-str2struct), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCharacters and Strings についてさらに検索
タグ タグを追加
バージョン 公開済み リリース ノート
1.0.0.2

updated m-file

1.0.0.1

return unmodified input when not convertible.

1.0.0.0