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

Change language to:
English - Français - Português

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

Scilab manual >> 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

参照

<< setfield Data Structures tlist >>

Copyright (c) 2022-2024 (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:
Wed Jan 26 16:25:13 CET 2011