Skip to content
Snippets Groups Projects
Commit 65dc7ad2 authored by Christophe Bradley Smith's avatar Christophe Bradley Smith
Browse files

Fixed missing and 1 file cases in the CheckmiscLS code, added missing newline...

Fixed missing and 1 file cases in the CheckmiscLS code, added missing newline character to CheckmiscLS code
parent e30032b4
No related branches found
No related tags found
No related merge requests found
......@@ -22,13 +22,17 @@ reviewerInit = input('Please enter your initials: ', 's');
% Save latest transcription and progress
uisave({'lss', 'remainingFiles', 'reviewerInit'}, '*.mat')
% ['lss_' reviewerInit '.mat']
%% Functions
function ls = CheckmiscLS(miscLS)
ls = [];
if isempty(miscLS); return; end
if isempty(miscLS); error('No valid ls transcription file was found in the workspace. Please check that the file has been exported from the application.'); end
if length(miscLS) == 1
ls = string(miscLS);
fprintf('Variable %s will be used as the user transcription variable.\n', ls)
return
end
fprintf(2, 'Warning: multiple potential ''ls'' files were found in the work space. \n\n')
......@@ -45,10 +49,10 @@ while true
userResp = input('Resp:');
if any(ismember(validResp, userResp))
fprintf('%s has been selected.', lsNames(userResp))
fprintf('%s has been selected.\n', lsNames(userResp))
break
else
fprintf('%i is an invalid response.', userResp)
fprintf('%i is an invalid response.\n', userResp)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment