Commit 26c8a18c authored by 13035516's avatar 13035516
Browse files

all decimals for the current to 2 decimal places

parent a58cee57
......@@ -9,7 +9,7 @@ function [emg_file, gait_file, coord_file] = findRelatedFiles(folder, study_file
% study_filename)
%
% Let's try getting rid of the '0' in the timepoint in the filename
% Cover cases of D8 and/or ES.0##mA
fname_split = strsplit(study_filename, '_');
timepoint = cell2mat(fname_split(2));
stim = cell2mat(fname_split(4));
......
......@@ -82,6 +82,8 @@ function filename = getFilename(study_info, stim_on, datefmt)
if stim_on
name_array{4} = 'ES';
curr_temp = mat2str(study_info.Current_mA_);
curr_dbl = str2double(curr_temp);
curr_temp = sprintf('%.2f', curr_dbl);
name_array{5} = strcat(curr_temp(2:end),'mA');
else
name_array{4} = 'NS';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment