How can I normalize the baseline of a displacement?
1 次查看(过去 30 天)
显示 更早的评论
Hello all,
I am working on the analysis of multiple displacement trials (fig.). In order to perform the analysis, I need to normalize the trace, so that all the trials baseline start from 0. Of course I need to shift the displacement according to the shift of the baseline.
Thank you very much!
0 个评论
采纳的回答
Image Analyst
2016-4-1
I'd first identify the spike locations, then interpolate the baseline from what's not a spike. Then I'd subtract that from the original signal. Something like (untested)
% Find spikes.
spikeIndexes = signal > 10;
Extract non-spikes
baseLine = signal(spikeLocations);
% Get continuous x
x = 1 : length(signal);
% Interpolate everywhere
baseline = interp1(x(spikeIndexes), baseline, x);
% Subtract
correctedSignal = signal - baseline;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrophysiology 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!