Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
MTM[struct] - record constructor
Calling Sequence
struct(name1,value1,name2,value2,...);
Parameters
namei
-
name or string
valuei
any expression
Description
The struct command creates a Maple record. A record is a fixed-size collection of items addressable by name. Accessing individual field values is done via the :- or [] operators. For example MyStruct:-field1 will give you value1 as does MyStruct[field1].
The :- operator binds more tightly than [], avoiding evaluation if the name field1 happens to have another meaning in the given scope. Conversely, [] allows evaluation to happen, which allows for name resolution, and iteration over individual fields via the exports command.
The struct command is essentially a front end to the Record command. Aside from the different calling sequence, the struct command differs from the Record command in that it adds a ModulePrint definition so the record is displayed nicely.
Examples
See Also
exports, ModulePrint, MTM, Record
Download Help Document