2019-07-15 11:07:24 +02:00
|
|
|
% Ground
|
|
|
|
% :PROPERTIES:
|
2019-11-22 10:36:26 +01:00
|
|
|
% :header-args:matlab+: :tangle ../src/initializeGround.m
|
2019-07-15 11:07:24 +02:00
|
|
|
% :header-args:matlab+: :comments org :mkdirp yes
|
|
|
|
% :header-args:matlab+: :eval no :results none
|
|
|
|
% :END:
|
|
|
|
% <<sec:initializeGround>>
|
|
|
|
|
2019-11-22 10:36:26 +01:00
|
|
|
% This Matlab function is accessible [[file:../src/initializeGround.m][here]].
|
2019-07-15 11:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
function [ground] = initializeGround()
|
|
|
|
%%
|
|
|
|
ground = struct();
|
|
|
|
|
|
|
|
ground.shape = [2, 2, 0.5]; % [m]
|
|
|
|
ground.density = 2800; % [kg/m3]
|
|
|
|
ground.color = [0.5, 0.5, 0.5];
|
|
|
|
|
|
|
|
%% Save
|
|
|
|
save('./mat/stages.mat', 'ground', '-append');
|
|
|
|
end
|