Skip to content

Commit f7de187

Browse files
FIX - hotfix for nargin/ft_nargin bug, primarily in ft_selectdata but also in other functions. The cause was that these functions were not yet adjusted to the latest state of ft_preamble handling. See http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3145
1 parent daa3ef7 commit f7de187

32 files changed

+129
-40
lines changed

compat/matlablt2010b/iscolumn.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
% This is a compatibility directory that should only be added to the path on
44
% MATLAB versions prior to 2010b.
55
%
6-
% iscolumn is not present in older version.
6+
% iscolumn is not present in older versions.
77

88
tf = length(size(x))==2 && size(x,2)==1;
99

contrib/nutmegtrip/nmt_sourceplot_spm8.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function nmt_sourceplot_spm8(cfg,functional)
2+
23
% NMT_SOURCEPLOT_SPM8
34
% plots functional source reconstruction data on slices or on
45
% a surface, optionally as an overlay on anatomical MRI data, where
@@ -157,9 +158,12 @@ function nmt_sourceplot_spm8(cfg,functional)
157158
%
158159
% $Id$
159160

160-
revision = '$Id$';
161-
162161
%%
162+
% these are used by the ft_preamble/ft_postamble function and scripts
163+
ft_revision = '$Id$';
164+
ft_nargin = nargin;
165+
ft_nargout = nargout;
166+
163167
% do the general setup of the function
164168
ft_defaults
165169
ft_preamble init
@@ -815,4 +819,4 @@ function nmt_sourceplot_spm8(cfg,functional)
815819

816820
cfg.axsel = 1;
817821
nmt_spm8_plot(cfg);
818-
nmt_image;
822+
nmt_image;

contrib/spike/ft_spike_isi.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
%
6262
% $Id$
6363

64-
revision = '$Id$';
64+
% these are used by the ft_preamble/ft_postamble function and scripts
65+
ft_revision = '$Id$';
66+
ft_nargin = nargin;
67+
ft_nargout = nargout;
6568

6669
% do the general setup of the function
6770
ft_defaults

contrib/spike/ft_spike_jpsth.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
%
5757
% $Id$
5858

59-
revision = '$Id$';
59+
% these are used by the ft_preamble/ft_postamble function and scripts
60+
ft_revision = '$Id$';
61+
ft_nargin = nargin;
62+
ft_nargout = nargout;
6063

6164
% do the general setup of the function
6265
ft_defaults

contrib/spike/ft_spike_maketrials.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
%
7676
% $Id$
7777

78-
revision = '$Id$';
78+
% these are used by the ft_preamble/ft_postamble function and scripts
79+
ft_revision = '$Id$';
80+
ft_nargin = nargin;
81+
ft_nargout = nargout;
7982

8083
% do the general setup of the function
8184
ft_defaults

contrib/spike/ft_spike_plot_isi.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
%
4141
% $Id$
4242

43-
revision = '$Id$';
43+
% these are used by the ft_preamble/ft_postamble function and scripts
44+
ft_revision = '$Id$';
45+
ft_nargin = nargin;
46+
ft_nargout = nargout;
4447

4548
% do the general setup of the function
4649
ft_defaults

contrib/spike/ft_spike_plot_isireturn.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
%
5757
% $Id$
5858

59-
revision = '$Id$';
59+
% these are used by the ft_preamble/ft_postamble function and scripts
60+
ft_revision = '$Id$';
61+
ft_nargin = nargin;
62+
ft_nargout = nargout;
6063

6164
% do the general setup of the function
6265
ft_defaults

contrib/spike/ft_spike_plot_jpsth.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
%
5555
% $Id$
5656

57-
revision = '$Id$';
57+
% these are used by the ft_preamble/ft_postamble function and scripts
58+
ft_revision = '$Id$';
59+
ft_nargin = nargin;
60+
ft_nargout = nargout;
5861

5962
% do the general setup of the function
6063
ft_defaults

contrib/spike/ft_spike_plot_psth.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
%
4444
% $Id$
4545

46-
revision = '$Id$';
46+
% these are used by the ft_preamble/ft_postamble function and scripts
47+
ft_revision = '$Id$';
48+
ft_nargin = nargin;
49+
ft_nargout = nargout;
4750

4851
% do the general setup of the function
4952
ft_defaults

contrib/spike/ft_spike_plot_raster.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
%
6262
% $Id$
6363

64-
revision = '$Id$';
64+
% these are used by the ft_preamble/ft_postamble function and scripts
65+
ft_revision = '$Id$';
66+
ft_nargin = nargin;
67+
ft_nargout = nargout;
6568

6669
% do the general setup of the function
6770
ft_defaults

0 commit comments

Comments
 (0)