Main
Home
Quick tour
Handbook
Docs
Mailing Lists
Demonstration
Download
Sourceforge project
FAQ
Links


Toolboxes
Char
Control
Crypto
Deprecated
Engine
Finance
FunFun
General
Graphics 3D
Graphics
Image
Integration
InputOutput
JMathLib
LinearAlgebra
Matrix
Miscellaneous
Net
Polynomial
Set
Signal
SpecFun
SpecialMatrix
Statistics
String
System
Time
Trigonometric
UserInterface
...


Contact
Developers

JMathLib
A Java Clone of Octave, SciLab, Freemat and Matlab.

[Index] [Documentation] [Demonstration] [Download]

Chapter 13. Structures

Usage

Structures are used to store structural data.

e.g. struct(a,1,b,2) will create a structure with two fields called a and b which are assigned the values 2 and 4

If the first element is a variable storing a structure then the new structure will contain it's fields.

x = struct(a, 1, b, 2)

a = 1 : b = 2 :

y = struct(x, c, 3)

a = 1 : b = 2 : c = 3 :

Last modified
sourceforge