Debug c attribute

This commit is contained in:
Adrien Jublan 2018-04-11 10:56:00 +02:00 committed by Unknown
parent 97d24bc4aa
commit a5519420a3

View File

@ -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