Not enough input arguments.

3 次查看(过去 30 天)
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.
  1 个评论
Matt J
Matt J 2020-12-11
You should believe what the error message is telling you.

请先登录,再进行评论。

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-12-11
编辑:KALYAN ACHARJYA 2020-12-11
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.

更多回答(1 个)

Matt J
Matt J 2020-12-11
编辑:Matt J 2020-12-11
You should believe what the error message is telling you. In the documentation for repmat, you will find no single-argument syntax like the one you've used.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by