MATLAB: Not enough input arguments.

errorrepmatStatistics and Machine Learning Toolbox

Hi,
I'm trying to use the repmat function :
for i=1:size(test,1)
a=(test{i,2 :4} - train{: , 2:4})
b=repmat(a)
end
But I only obtain this error :
Error using repmat
Not enough input arguments.

Best Answer

Yes, what repmat suppose to do here, repmat(A,n) returns an array containing n copies of A in the row and column dimensions. May be you missed the "n" to be define, as an example
>> a=1:3
a =
1 2 3
>> repmat(a)
Error using repmat
Not enough input arguments.