Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

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

参照

  • cell — 空行列のセル配列を作成する.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:36 CEST 2012