Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - 日本語

Change language to:
English - Français - Português - Русский

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

Scilabヘルプ >> 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 — 空行列のセル配列を作成する.
Report an issue
<< setfield Data Structures tlist >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:18:58 CEST 2014