User Tools

Site Tools


walkthrough

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
walkthrough [2017/10/18 10:48]
marijn.nijenhuis
walkthrough [2017/10/18 10:49]
marijn.nijenhuis [Node positions]
Line 15: Line 15:
 We start by defining the positions of the nodes where we place the origin at node 1. ''nodes'' is an n<sub>n</sub>×3 matrix for //defining the positions of the nodes//. Each row represents a node (there are n<sub>n</sub> nodes). The row number determines the number a node gets. The first column contains the ''x''-coordinate of the node position, the second column the ''y''-coordinate, and the third column the ''z''-coordinate. We start by defining the positions of the nodes where we place the origin at node 1. ''nodes'' is an n<sub>n</sub>×3 matrix for //defining the positions of the nodes//. Each row represents a node (there are n<sub>n</sub> nodes). The row number determines the number a node gets. The first column contains the ''x''-coordinate of the node position, the second column the ''y''-coordinate, and the third column the ''z''-coordinate.
 <code matlab> <code matlab>
-clc    %clear command window +clear   %clear workspace 
-clear  %clear workspace+clc     %clear command window
  
-%% NODE POSITIONS+addpath('spacar'%have this point to the folder where spacar is located 
 + 
 +%some dimensions
 L = 0.1;    %[m] L = 0.1;    %[m]
 W = 0.05;   %[m] W = 0.05;   %[m]
 + 
 %% NODE POSITIONS %% NODE POSITIONS
 nodes = [0 0 0;     %node 1 nodes = [0 0 0;     %node 1
walkthrough.txt · Last modified: 2017/10/18 10:51 by marijn.nijenhuis