ET_PDToolkit/PDToolkit/@PDTrial/logtransform.m

19 lines
399 B
Mathematica
Raw Normal View History

2018-06-12 14:49:55 +02:00
function[obj] = logtransform(obj)
%% perform logtransformation of all data
% signals = fieldnames(obj.data.uncorrected);
% for i = 1:length(signals)
eyes = fieldnames(obj.data);
for e = 1:length(eyes)
eye = eyes{e};
signal = obj.data.(eye).uncorrected.filtered;
logtransformed_signal = log(signal);
obj.data.(eye).uncorrected.logtransformed = logtransformed_signal;
end