Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Include Page
SIMULATION: MATLAB Google Analytics
SIMULATION: MATLAB Google Analytics
Panel

Overview
Step 1: Creating a structure for one element
Step 2: Creating a structure for two elements
Step 3: Structure of handles

...

Include Page
SIMULATION: Structures and Handles - Panel
SIMULATION: Structures and Handles - Panel

Creating a Structure for One Element

Background on Structures

Structures are a convenient way to organize data. To demonstrate how structures work, consider the triangular element below with three nodes, one at each corner.

...

In the above representation, sigepsstruct is refered to as a structure with two fields: eps and sig. A useful way to visualize this is that sigepsstruct is a box that contains two smaller boxes, eps and sig, which hold the strain and stress values, respectively. So if I want, say, the stress values, I ask MATLAB to open the sig box within sigepsstruct and look inside.

Create a structure

Let's create the above structure in MATLAB. Start MATLAB. Create a working directory at an appropriate location using the Current Directory window. If you cannot see this window, select Main Menu > Desktop > Current Directory. You can right-click in this window to access the option for creating a new folder (i.e. directory). Browse to this folder to make this your working directory.

...

I hear you saying "this is a piece of cake, gimme more!". So let's move on to Step 2.

Go to Step 2: Creating a structure for two elements

Go to all MATLAB Learning Modules