Skip to content

Commit

Permalink
Update kardia.m
Browse files Browse the repository at this point in the history
Fix load gui_export.mat
Fix showaxes (replace by set gca 'visible', 'off')
Fix repmat with empty matrix
  • Loading branch information
perakakis committed Feb 3, 2020
1 parent b35efd5 commit edf6b2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Binary file removed Sample Data/test.xls
Binary file not shown.
16 changes: 12 additions & 4 deletions kardia.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
clearFcn
end

load gui_export.mat
load gui_export.mat mat

%% ---------- GUI LAYOUT -----------

Expand Down Expand Up @@ -1076,7 +1076,7 @@
function plot_kardia(src,eventdata)
H=imread('kardia.jpg');
image(H)
showaxes('off')
set (gca, 'Visible','off');
end

%% Load Callbacks
Expand Down Expand Up @@ -2906,7 +2906,11 @@ function excel_callback(src,evtdata)
end
SubjectsPCR=DATA.Subjects;
if subNum>1
SubjectsPCR=repmat(SubjectsPCR,1,DATA.GUI.PCRconditionsNum);
if isempty (DATA.GUI.PCRconditionsNum)
SubjectsPCR=repmat(SubjectsPCR,1,1);
else
SubjectsPCR=repmat(SubjectsPCR,1,DATA.GUI.PCRconditionsNum);
end
elseif subNum==1
SubjectsPCR={SubjectsPCR};
elseif isempty(subNum)
Expand Down Expand Up @@ -2962,7 +2966,11 @@ function excel_callback(src,evtdata)
end
SubjectsHRV=DATA.Subjects;
if subNum>1
SubjectsHRV=repmat(SubjectsHRV,1,DATA.GUI.HRVconditionsNum);
if isempty (DATA.GUI.HRVconditionsNum)
SubjectsHRV=repmat(SubjectsHRV,1,1);
else
SubjectsHRV=repmat(SubjectsHRV,1,DATA.GUI.HRVconditionsNum);
end
elseif subNum==1
SubjectsHRV={SubjectsHRV};
elseif isempty(subNum)
Expand Down

0 comments on commit edf6b2a

Please sign in to comment.