Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
saving error in descriptive_part.m
  • Loading branch information
Junpeng Lao committed Aug 30, 2016
1 parent 350e9ce commit e510ee0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions GUI/descriptive_part.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function descriptive_part(varargin)
histfit(MeasureM.meanPathLength,nbins,'gamma');
title('Path Length(MEAN)')
if isunix
print(strcat('Descriptive_STAT/Eye_Mvt_Measure_Dist'),'-dpng')
print(h1,strcat('Descriptive_STAT/Eye_Mvt_Measure_Dist'),'-dpng')
else
print(strcat('Descriptive_STAT\Eye_Mvt_Measure_Dist'),'-dpng')
print(h1,strcat('Descriptive_STAT\Eye_Mvt_Measure_Dist'),'-dpng')
end

% Mean of Fixation Map
Expand All @@ -93,9 +93,9 @@ function descriptive_part(varargin)
imagesc(FixationMean);
axis off,axis equal
if isunix
print(strcat('Descriptive_STAT/Mean_Intensity_Map'),'-dpng')
print(h2,strcat('Descriptive_STAT/Mean_Intensity_Map'),'-dpng')
else
print(strcat('Descriptive_STAT\Mean_Intensity_Map'),'-dpng')
print(h2,strcat('Descriptive_STAT\Mean_Intensity_Map'),'-dpng')
end
close(h1,h2)

Expand Down Expand Up @@ -136,9 +136,9 @@ function descriptive_part(varargin)
boxplot(MeasureM.meanPathLength,Conditiontmp)
title('Path Length(MEAN)')
if isunix
print(strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Boxplot'),'-dpng')
print(h1,strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Boxplot'),'-dpng')
else
print(strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Boxplot'),'-dpng')
print(h1,strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Boxplot'),'-dpng')
end
close(h1)

Expand Down Expand Up @@ -181,9 +181,9 @@ function descriptive_part(varargin)

if pp==1
if isunix
print(strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
print(h(k-1),strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
else
print(strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
print(h(k-1),strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
end
h(k)=figure('NumberTitle','off','Name',['Mean_FixaionIntensity_Map - ' CName{ic} ' continue'],...
'position',[xpos,ypos,screensize(3),screensize(4)]);
Expand All @@ -192,9 +192,9 @@ function descriptive_part(varargin)
end
end
if isunix
print(strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map',num2str(k)),'-dpng')
print(h(k),strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map',num2str(k)),'-dpng')
else
print(strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map',num2str(k)),'-dpng')
print(h(k),strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map',num2str(k)),'-dpng')
end
close(gcf)
else
Expand All @@ -212,9 +212,9 @@ function descriptive_part(varargin)
end
% save figures
if isunix
print(strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map'),'-dpng')
print(h(1),strcat('Descriptive_STAT/',CName{ic},'/',CName{ic},'_Mean_Intensity_Map'),'-dpng')
else
print(strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map'),'-dpng')
print(h(1),strcat('Descriptive_STAT\',CName{ic},'\',CName{ic},'_Mean_Intensity_Map'),'-dpng')
end
%close figure
close(gcf);
Expand Down Expand Up @@ -282,9 +282,9 @@ function descriptive_part(varargin)

if pp==1
if isunix
print(strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
print(h(k-1),strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
else
print(strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
print(h(k-1),strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map',num2str(k-1)),'-dpng')
end
h(k)=figure('NumberTitle','off','Name',['Mean Fixation Intensity - JointCondion continue'],...
'position',[xpos,ypos,screensize(3),screensize(4)]);
Expand All @@ -293,9 +293,9 @@ function descriptive_part(varargin)
end
end
if isunix
print(strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map',num2str(k)),'-dpng')
print(h(k),strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map',num2str(k)),'-dpng')
else
print(strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map',num2str(k)),'-dpng')
print(h(k),strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map',num2str(k)),'-dpng')
end
close(gcf)
else
Expand All @@ -308,9 +308,9 @@ function descriptive_part(varargin)
axis off,axis equal
end
if isunix
print(strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map'),'-dpng')
print(h(1),strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Mean_Intensity_Map'),'-dpng')
else
print(strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map'),'-dpng')
print(h(1),strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Mean_Intensity_Map'),'-dpng')
end
close(gcf);
end
Expand All @@ -320,7 +320,7 @@ function descriptive_part(varargin)
% %hfigs(hfigs ==handles.figure1)=[];
% close(hfigs(1:end-1)) % keep the figure of the linear model open

%% box plot for joint condition
%% box plot for joint condition
h(1) = figure('NumberTitle','off','Name','Eye movement measurement Boxplot',...
'position',[xpos,ypos,screensize(3)/2,screensize(4)]);

Expand All @@ -344,9 +344,9 @@ function descriptive_part(varargin)
boxplot(MeasureM.meanPathLength,conditiontmp);
title('Path Length(MEAN)')
if isunix
print(strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Boxplot'),'-dpng');
print(h(1),strcat('Descriptive_STAT/',CNameall,'/',CNameall,'_Boxplot'),'-dpng');
else
print(strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Boxplot'),'-dpng');
print(h(1),strcat('Descriptive_STAT\',CNameall,'\',CNameall,'_Boxplot'),'-dpng');
end
close(gcf)

Expand Down
Binary file modified Matlab_Installation_Package/iMap4.mlappinstall
Binary file not shown.

0 comments on commit e510ee0

Please sign in to comment.