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
automatically synchronized identical files to revision 7456

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