Debug c attribute
This commit is contained in:
parent
97d24bc4aa
commit
a5519420a3
@ -38,7 +38,8 @@ n = struct();
|
||||
|
||||
%%
|
||||
function element = updateDamping(element)
|
||||
for field = fieldnames(element.k)
|
||||
element.c.(field{1}) = 1/element.ksi.(field{1})*sqrt(element.k.(field{1})/element.m);
|
||||
field = fieldnames(element.k);
|
||||
for i = 1:length(field)
|
||||
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