Add file sample.m (design and position of sample)
This commit is contained in:
parent
73be1e0414
commit
5022743549
6
.SimulinkProject/Root.type.Files/Sample.m.type.File.xml
Normal file
6
.SimulinkProject/Root.type.Files/Sample.m.type.File.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info>
|
||||
<Category UUID="FileClassCategory">
|
||||
<Label UUID="design" />
|
||||
</Category>
|
||||
</Info>
|
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info Ref="" Type="Relative" />
|
BIN
Assemblage.slx
BIN
Assemblage.slx
Binary file not shown.
3
Data.m
3
Data.m
@ -1,4 +1,5 @@
|
||||
run Assemblage_DataFile1.m
|
||||
run Sample.m
|
||||
|
||||
%% Translation stage
|
||||
ty = struct();
|
||||
@ -60,6 +61,7 @@ nass.k.ax = 5e7; %z
|
||||
nass.ksi.ax = 10;
|
||||
nass = updateDamping(nass);
|
||||
|
||||
|
||||
%%
|
||||
function element = updateDamping(element)
|
||||
field = fieldnames(element.k);
|
||||
@ -67,3 +69,4 @@ function element = updateDamping(element)
|
||||
element.c.(field{i}) = 1/element.ksi.(field{i})*sqrt(element.k.(field{i})/element.m);
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user