@@ -822,15 +822,16 @@ function timer_Callback(~,~,handles)
822
822
{' Second' },{handles .settings .labelX },{handles .settings .labelY },{' Button' }; ...
823
823
{' %%%%%% ' },{' %%%%%% ' },{' %%%%%% ' },{' %%%%%% ' }; ...
824
824
num2cell(mean_ratings )];
825
- % Create export file
826
- try
827
- writecell(output ,fullfile(pathname ,filename ), ...
828
- ' FileType' ,' text' ,' Delimiter' ,' comma' , ...
829
- ' QuoteStrings' ,true ,' Encoding' ,' UTF-8' );
830
- msgbox(' Export successful.' ,' Success' );
831
- catch err
832
- errordlg(err .message ,' Error saving' );
833
- end
825
+ output(cellfun(@(x ) any(ismissing(x )), output )) = {' ' };
826
+ % Create export file
827
+ try
828
+ writecell(output ,fullfile(pathname ,filename ), ...
829
+ ' FileType' ,' text' ,' Delimiter' ,' comma' , ...
830
+ ' QuoteStrings' ,true ,' Encoding' ,' UTF-8' );
831
+ msgbox(' Export successful.' ,' Success' );
832
+ catch err
833
+ errordlg(err .message ,' Error saving' );
834
+ end
834
835
end
835
836
program_reset(handles );
836
837
% While transitioning or paused
0 commit comments