diff --git a/Matlab_Installation_Package/iMap4.mlappinstall b/Matlab_Installation_Package/iMap4.mlappinstall index 2b41484..cab8450 100644 Binary files a/Matlab_Installation_Package/iMap4.mlappinstall and b/Matlab_Installation_Package/iMap4.mlappinstall differ diff --git a/imap_utilities/rdmfixmap.m b/imap_utilities/rdmfixmap.m index 82a8334..532fdac 100644 --- a/imap_utilities/rdmfixmap.m +++ b/imap_utilities/rdmfixmap.m @@ -1,7 +1,11 @@ -function [RDM, stRDM] = rdmfixmap(FixMap, Mask, CondiVec, SbjVec) +function [RDM, stRDM] = rdmfixmap(FixMap, Mask, CondiVec, SbjVec, varargin) % compute representational dissimilarity matrix of smoothed fixation map % basic on Mahalanobis distance. - +if nargin > 4 + plotopt = varargin{1}; +else + plotopt = 1; +end CondiVec = categorical(CondiVec); SbjVec = categorical(SbjVec); % normalized map @@ -80,18 +84,20 @@ end end % RDM = RDM./max(RDM(:)); -% display output -scrsz=get(0,'ScreenSize');% get screen size for output display -figure('Numbertitle','off','Name',... - 'Representational Dissimilarity Matrix (value shows multivariate distance)',... - 'Position',[1 1 scrsz(3) scrsz(4)]); -subplot(1,2,1) -imagesc(stRDM); -title('stRDM') -axis square off; -subplot(1,2,2) -imsqrmat(RDM, unicd); -title('RDM') +if plotopt + % display output + scrsz=get(0,'ScreenSize');% get screen size for output display + figure('Numbertitle','off','Name',... + 'Representational Dissimilarity Matrix (value shows multivariate distance)',... + 'Position',[1 1 scrsz(3) scrsz(4)]); + subplot(1,2,1) + imagesc(stRDM); + title('stRDM') + axis square off; + subplot(1,2,2) + imsqrmat(RDM, unicd); + title('RDM') +end end %--------------------------------------------- @@ -147,4 +153,4 @@ y = pab(I).*log2(pab(I)./papb(I)); I = sum(y); -end +end \ No newline at end of file