-
Notifications
You must be signed in to change notification settings - Fork 2
/
IMNF.asv
27 lines (23 loc) · 963 Bytes
/
IMNF.asv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Function name....: IMNF
% Date.............: October 05, 2007
% Author...........: Adriano O. Andrade, PhD
% Description......:
% This function estimates the instantaneous mean
% frequency as defined in J. S. Karlsson, B. Gerdle, M.
% Akay, "Analyzing Surface Myoelectric Signals Recorded
% During Isokinetic Contractions", vol. 20, pp. 97-105, IEEE
% Engineering in Medicine and Biology, 2001
%
% Parameters.......:
% a.........-> amplitude
% bins .....-> number of the color map divisions
% Remarks..........:
% The colormap is ploted in 256 levels of gray
function [imnf_out,t,time] = IMNF(EMG,fs,NLevels)
D = sum(B,1);
for i=1:size(B,1)
B(i,:) = B(i,:)*F(i);
end
N = sum(B,1);
imnf_out = N./D;