-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various updates on visualization functions
- Loading branch information
Matthias Schultze-Kraft
committed
Feb 20, 2014
1 parent
e5175c8
commit 7547251
Showing
32 changed files
with
145 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
function mnt = mnt_getNIRSMontage(varargin) | ||
%MNT_GETNIRSMONTAGE - get montage with NIRS channel positions for a given set | ||
% of sources and detectors. NIRS channels are placed half-way | ||
% between a source and a detector on a spherical head model. | ||
%MNT_GETNIRSMONTAGE - Get montage with NIRS channel positions | ||
% | ||
%Description: | ||
% get montage with NIRS channel positions for a given set of sources and | ||
% detectors. NIRS channels are placed half-way between a source and a | ||
% detector on a spherical head model. | ||
% | ||
%Synopsis: | ||
% MNT = nirs_getMontage(CLABSOURCE,CLABDETECTOR,<OPT>) | ||
% If you give channels labels of the source and detectors (should | ||
% correspond to EEG channel labels), montages for source and | ||
% detectors are produced, as well as montages for the | ||
% source-detector combinations. | ||
% MNT = nirs_getMontage(CLABSOURCE,CLABDETECTOR,<OPT>) | ||
% If you give channels labels of the source and detectors (should | ||
% correspond to EEG channel labels), montages for source and | ||
% detectors are produced, as well as montages for the | ||
% source-detector combinations. | ||
% | ||
% MNT = nirs_getMontage(MNT,<OPT>) | ||
% You can provide a montage struct wherein source and detector | ||
% montages are already given in .source and .detector fields. | ||
% In this case, only the source-detector combinations are determined. | ||
% MNT = nirs_getMontage(MNT,<OPT>) | ||
% You can provide a montage struct wherein source and detector | ||
% montages are already given in .source and .detector fields. | ||
% In this case, only the source-detector combinations are determined. | ||
% | ||
%Input | ||
% OPT: struct or property/value list of optional properties: | ||
|
@@ -40,13 +43,11 @@ | |
% .detector - struct with montage for the detectors | ||
% | ||
%See also: setElectrodeMontage, nirs_reduceMontage | ||
% | ||
|
||
% [email protected] 2011 | ||
% Markus Wenzel 2013 (adapted it to the new toolbox) | ||
% Jan Mehnert February 2014 (ready for public BBCI toolbox) ([email protected]) | ||
|
||
|
||
props= {'ClabPolicy' 'label' 'CHAR' | ||
'Projection' 'euclidean' 'CHAR' | ||
'PositionFcn' @mntutil_posExt55 'FUNC' | ||
|
@@ -78,7 +79,6 @@ | |
mnt.source = mnt_setElectrodePositions(clabSource, 'PositionFcn', opt.PositionFcn); | ||
mnt.detector = mnt_setElectrodePositions(clabDetector, 'PositionFcn', opt.PositionFcn); | ||
end | ||
|
||
|
||
if any(isnan(mnt.source.pos_3d(:))) || any(isnan(mnt.detector.pos_3d(:))) | ||
warning(['Some source/detector positions are NaN. Note that the NIRS channels '... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
}; | ||
|
||
if nargin==0, | ||
dat= props; return | ||
H= props; return | ||
end | ||
|
||
misc_checkType(y,'!DOUBLE[- -]'); | ||
|
Oops, something went wrong.