<< setfield Data Structures tlist >>

Scilab Help >> Data Structures > struct

struct

構造体を作成する

呼び出し手順

st=struct(field1,value1,field2,value2...)

パラメータ

field1, field2, ..

フィールド名を表す文字列

value1, value2, ..

フィールドの値を表すデータ型 (double, char, int, ...)

説明

この関数はフィールド名 fields1, field2, ..., を有し, その値がvalue1, value2, ... となる構造体を返します.

// create a struct date
date=struct('day',25,'month' ,'DEC','year',2006)
//change the month
date.month='AUG';
// change the year
date.year=1973;
//change the day
date.day=19;
// add a new field
date.semaine=32

参照


Report an issue
<< setfield Data Structures tlist >>