Research Article

Role of Auriculotherapy in the Treatment of Temporomandibular Disorders with Anxiety in University Students

Algorithm 1

Algorithm used for normalization of the electromyography data.
% Import data Data_matrix
Data_matrix = dlmread (RTSD2.txt);
% Storage of the original data Original_Data
Original_Data = Data_matrix;
% Identifying the position of the data for time = 1 s and time = 4 s
one = find (Data_matrix == 1);
four = find (Data_matrix == 4);
% Excluding data when time ≤ 1 s and time ≥ 4 s
Data_matrix (1: A four: end,:) = ;
Filtered_data = Data_matrix;
Number_lines = size (Filtered_data, 1);
% Normalization of the data
Data_RMS = Filtered_data;
mean = sqrt (mean (Data_RMS (:, 2)));
for counter = 1: Number_lines
Data_RMS (counter, 2) = ((Data_RMS (counter, 2))/mean);
end
% Mean
media_RMS = mean (Data_RMS (:, 2))