16 lines
278 B
Mathematica
16 lines
278 B
Mathematica
|
function [] = initializeSimscapeConfiguration(args)
|
||
|
|
||
|
arguments
|
||
|
args.gravity logical {mustBeNumericOrLogical} = true
|
||
|
end
|
||
|
|
||
|
conf_simscape = struct();
|
||
|
|
||
|
if args.gravity
|
||
|
conf_simscape.type = 1;
|
||
|
else
|
||
|
conf_simscape.type = 2;
|
||
|
end
|
||
|
|
||
|
save('./mat/conf_simscape.mat', 'conf_simscape');
|