str2subs, subs2str

Convert a string to/from a subscript struct for use in subsref and subsasgn.

現在この提出コンテンツをフォロー中です。

Convert a character string (row vector) c to a subscript struct s for use in subsref or subsasgn.

Example: str2subs('a{1}.b(2,:)') is equivalent to substruct('{}',{1},'.','b','()',{2,':'}).

Convert a subscript struct s to a character string.

Example: subs2str(substruct('{}',{1},'.','b','()',{2,':'}),'a') returns 'a{1}.b(2,:)'.

引用

Kenneth Johnson (2026). str2subs, subs2str (https://jp.mathworks.com/matlabcentral/fileexchange/84365-str2subs-subs2str), MATLAB Central File Exchange. に取得済み.

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0