Not enough input arguments.

조회 수: 2 (최근 30일)
Sophia Nador
Sophia Nador 2020년 12월 11일
편집: KALYAN ACHARJYA 2020년 12월 11일
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.
  댓글 수: 2
Sophia Nador
Sophia Nador 2020년 12월 11일
Thank you very much :)
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 12월 11일
편집: KALYAN ACHARJYA 2020년 12월 11일
My pleasure :)

댓글을 달려면 로그인하십시오.

추가 답변 (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.
  댓글 수: 1
Sophia Nador
Sophia Nador 2020년 12월 11일
Thank you very much for your answer ! :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by