enhancement: mesh2edge function added to /private for plotting simbio meshes with ft_electroderealign

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7437 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement: ft_electroderealign works also with simbio meshes in interactive mode

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7438 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
documentation - reformulated cfg.order and cfg.lambda so that it becomes more obvious that these options are not there for the distance method)


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7439 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix #1969 - in prepare_neighbours, first channels will be subselected then neighbours will be defined. Also extended test script to cover some exceptions.

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7440 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement - documentation update for cfg.tissue


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7441 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement: ft_electroderealign also works now with simbio headmodel not only with hexahedral or tetrahedral meshes. I just renamed vol.pos to vol.pnt in line 184 and 189.

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7442 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix - fixed the test script so that what is being asserted actually make sense (and if the assertions make sense, they also don't fail apparently)

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7443 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix: when requesting variable number of dpss tapers, the output array was of the wrong size because of faulty indexing, and was allocated as a zero-array, while it should be a NaN-array


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7444 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement(1964 + other): added usercfg to ft_preamble_provenance, and ensured the preamble order is consistent


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7445 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
restructuring - removed the external/mne test scripts and data, this saves 39MB. See http://bugzilla.fcdonders.nl/show_bug.cgi?id=1971


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7446 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
added new test function bug 1443


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7447 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
documentation - specify the options for interpmethod, also removed the unused handles output argument


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7448 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
documentation - better explanation of cfg.maskalpha


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7449 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix 1976 - MNE crash if only 1 time point.  in this case, transpose squeeze(avg(i,:,:))


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7450 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
changed length() into size( ,1) to avoid crash when nrpt<nfreq: thanks to Andrea

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7451 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement - rather than testing for the 0.3 fraction of unknown type/units, check whether the number of channels with unknown type/units does not increase over the initial ft_read_sens


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7452 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement - removed the exception for yokogawa MEG


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7453 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix: (1980), fixed error in capitalization of the name of the global var used to store debug info in


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7454 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
bugfix, see bug 1977. added option cfg.interpolatenan, also take out nans from maskdatavector,and changed interpolation method for mask to nearest.

git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7455 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
enhancement - implemented a function for converting the (neuromag) gradiometer definition from T into T/m (and other units). Renamed unit into units for ft_compute_leadfield for consistency with cfg.units here and there. Added feedback option to ft_convert_units, default=false. Made test script for neuromag units. See bugzilla #953 and #963.


git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@7456 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0