Skip to content
Snippets Groups Projects
Verified Commit dabfe1a9 authored by leprob001's avatar leprob001
Browse files

chore: Updated cleanup in startEndToa.m

parent a2d1a523
No related branches found
No related tags found
No related merge requests found
335 336
\ No newline at end of file \ No newline at end of file
...@@ -60,12 +60,11 @@ endToaDate = pTrajectory.toaData.toaDate(indexEnd); ...@@ -60,12 +60,11 @@ endToaDate = pTrajectory.toaData.toaDate(indexEnd);
% Collect sound source names % Collect sound source names
startSources = pTrajectory.toaData.soundSource(indexStart); startSources = pTrajectory.toaData.soundSource(indexStart);
endSources = pTrajectory.toaData.soundSource(indexEnd); endSources = pTrajectory.toaData.soundSource(indexEnd);
% Cleanup
startSources(cellfun(@(x) ~isstr(x), startSources)) = {noSoundSource};
endSources(cellfun(@(x) ~isstr(x), endSources)) = {noSoundSource};
% Replace non selected soundsources by default string % Replace non selected soundsources by default string
startNotSelectedIndices = contains(startSources, '');
startSources(startNotSelectedIndices) = {noSoundSource};
endNotSelectedIndices = contains(endSources, '');
endSources(endNotSelectedIndices) = {noSoundSource};
for i = 1:length(startToa) for i = 1:length(startToa)
dataString = [ dataString ... dataString = [ dataString ...
......
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