ГОСТ 31191.5—2007
ifzfile - ”
figure(3)
elf
SpmeAccZ(path. zfile);
end
function SpmeAccXY(path. file. XorY)
%SpmeAccXY: Calculates the human response ofthe spine, alx, aly. Dx and Dy from acceleration %
measurements In the seat. The result Is stored In the file_al.txt. along with the time
vector.
%load input file
as=load((path. file.1.txt*]);
%separation of input time data measurementdata
time=as(:,1);
as=as(:.2);
^calculation of al(t)
a=(1.-1.957115.0.963949);
0*10.0192752,0.004 33451.-0.0167763).
a1“filter(b. a, as).
%call the function CountPeaks to cakculate Dk
Dk=CountPeaks(a1. XorY).
%plotthe result
plot (tlme.al)
title (file)
legendd’D1, XorY.’ =’. num2str(Dk)], 1)
%add the time column to the calculated response and the calculated value Dk to the last row and second
%column
at=[time,a1; ODk);
eval (f save \ path. file. *_al. txt al -ascii-tabs’))
function SpmeAccZ (path, zfile)
%SpmeAccZ: Calculates the human response of the spine, alz and Dz from acceleration measurements In
%
%path.
%zfile:
%
the seat. The result isstored In the file zfile_al.txt. along with the time vector.
Directory In which measurementfiles are located.
ASCII file with a time vector In the first column and the measurement result, asz. In the
second column.
%toad input file
asz=load ((path, zfile. *. txt •));
((’ save’. path.file.’_al.txt alz -ascii-tabs’))
%separation of Input time data and measurement data
time*asz(:, 1);
asz=asz(:,2);
%extension of asz with 8 samples
asz=(0; 0; 0; 0; 0; 0; 0; 0; asz);
%preallocation of memory
alz=zeros (size (asz));
x=zeros (length (asz). 7);
^constants
w*(0.00130 0.01841 -0.00336 0.01471 0.00174 0.00137 0.00145;
-0.00646 -0.00565 -0.00539 0.01544 -0.00542 0.00381 0.00497;
-0.00091 0.02073 0.00708 -0.00091 0.00255 -0.00216 0.01001.
0.00898 -0.02626 0.00438 -0.00595 -0.00774 -0.00034 0.01283;
0.00201 0.00579 0.00330 -0.00065 -0.00459 -0.00417 -0.00468;
0.00158 0.00859 0.00166 0.00490 -0.00546 0.00057 -0.00797;
0.00361 0.00490 0.00452 0.00079 -0.00604 -0.00638 -0.00529.
0.00167 -0.00098 0.00743 0.00795 -0.01095 0.00627 -0.00341.
13