list フィールドの挿入
setfield(i,x,l)
任意の型の行列
list, tlist または mlist 変数
フィールド添え字, 詳細は insertion 参照.
この関数は,フィールド展開を行うl(i)=x構文と等価ですが, 唯一の差異は,mlistオブジェクトにも適用可能なことです.
l(i)=x
mlist
l=list(1,'qwerw',%s) l(1)='Changed' l(0)='Added' l(6)=['one more';'added']